@@ -234,7 +234,7 @@ describe('Services', () => {
234
234
it ( 'returns an empty object' , async ( ) => {
235
235
const result = await loadServiceFilters ( serviceId ) ;
236
236
237
- expect ( result ) . to . deep . equal ( { } ) ;
237
+ expect ( result ) . to . be . empty ;
238
238
} ) ;
239
239
240
240
it ( 'checks for file existence' , async ( ) => {
@@ -299,7 +299,7 @@ describe('Services', () => {
299
299
expect ( result [ 0 ] ( null , 'context' ) ) . to . equal ( 'foo' ) ;
300
300
} ) ;
301
301
302
- context ( 'parameters passed to filters' , ( ) => {
302
+ describe ( 'parameters passed to filters' , ( ) => {
303
303
let serviceLoadedFilters ;
304
304
let passedDOM ;
305
305
let passedContext ;
@@ -342,8 +342,8 @@ describe('Services', () => {
342
342
343
343
describe ( '#createSourceDocuments' , ( ) => {
344
344
const realFilterNames = Object . keys ( exposedFilters ) ;
345
+ const SERVICE_ID = 'service_with_filters_history' ;
345
346
let result ;
346
- const serviceId = 'service_with_filters_history' ;
347
347
348
348
context ( 'when terms declaration has only one source document' , ( ) => {
349
349
const termsDeclaration = {
@@ -358,7 +358,7 @@ describe('Services', () => {
358
358
} ;
359
359
360
360
before ( async ( ) => {
361
- result = await createSourceDocuments ( serviceId , termsDeclaration ) ;
361
+ result = await createSourceDocuments ( SERVICE_ID , termsDeclaration ) ;
362
362
} ) ;
363
363
364
364
it ( 'creates a single SourceDocument' , ( ) => {
@@ -411,7 +411,7 @@ describe('Services', () => {
411
411
} ;
412
412
413
413
before ( async ( ) => {
414
- result = await createSourceDocuments ( serviceId , termsDeclaration ) ;
414
+ result = await createSourceDocuments ( SERVICE_ID , termsDeclaration ) ;
415
415
} ) ;
416
416
417
417
it ( 'creates multiple SourceDocuments' , ( ) => {
0 commit comments