@@ -234,7 +234,7 @@ describe('Services', () => {
234234 it ( 'returns an empty object' , async ( ) => {
235235 const result = await loadServiceFilters ( serviceId ) ;
236236
237- expect ( result ) . to . deep . equal ( { } ) ;
237+ expect ( result ) . to . be . empty ;
238238 } ) ;
239239
240240 it ( 'checks for file existence' , async ( ) => {
@@ -299,7 +299,7 @@ describe('Services', () => {
299299 expect ( result [ 0 ] ( null , 'context' ) ) . to . equal ( 'foo' ) ;
300300 } ) ;
301301
302- context ( 'parameters passed to filters' , ( ) => {
302+ describe ( 'parameters passed to filters' , ( ) => {
303303 let serviceLoadedFilters ;
304304 let passedDOM ;
305305 let passedContext ;
@@ -342,8 +342,8 @@ describe('Services', () => {
342342
343343 describe ( '#createSourceDocuments' , ( ) => {
344344 const realFilterNames = Object . keys ( exposedFilters ) ;
345+ const SERVICE_ID = 'service_with_filters_history' ;
345346 let result ;
346- const serviceId = 'service_with_filters_history' ;
347347
348348 context ( 'when terms declaration has only one source document' , ( ) => {
349349 const termsDeclaration = {
@@ -358,7 +358,7 @@ describe('Services', () => {
358358 } ;
359359
360360 before ( async ( ) => {
361- result = await createSourceDocuments ( serviceId , termsDeclaration ) ;
361+ result = await createSourceDocuments ( SERVICE_ID , termsDeclaration ) ;
362362 } ) ;
363363
364364 it ( 'creates a single SourceDocument' , ( ) => {
0 commit comments