Skip to content

Commit 9d3c08f

Browse files
committed
Minor improvements
1 parent 0d26785 commit 9d3c08f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/archivist/services/index.test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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', () => {
@@ -411,7 +411,7 @@ describe('Services', () => {
411411
};
412412

413413
before(async () => {
414-
result = await createSourceDocuments(serviceId, termsDeclaration);
414+
result = await createSourceDocuments(SERVICE_ID, termsDeclaration);
415415
});
416416

417417
it('creates multiple SourceDocuments', () => {

0 commit comments

Comments
 (0)