Skip to content

Commit

Permalink
Renames the test files to *.spec.js to prep for jest (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
acolchado authored Dec 5, 2023
1 parent bffaaba commit 3fff750
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 26 deletions.
24 changes: 24 additions & 0 deletions test/integration/ModuleIntegration.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
const spur = require('spur-ioc');

// NEED to use require vs import to test module export for backward compatability
const mainModule = require('../../');

describe('Integration', function () {
describe('Main Module Integration Tests', () => {
beforeEach(() => {
this.ioc = spur.create('test-spur-common');
this.ioc.merge(mainModule());
});

it('base module dependencies are injectable', () => {
return this.ioc.inject((express, expressDevice, methodOverride, cookieParser, bodyParser, expressWinston) => {
expect(express).to.exist;
expect(expressDevice).to.exist;
expect(methodOverride).to.exist;
expect(cookieParser).to.exist;
expect(bodyParser).to.exist;
expect(expressWinston).to.exist;
});
});
});
});
26 changes: 0 additions & 26 deletions test/integration/ModuleIntegration_Spec.js

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 3fff750

Please sign in to comment.