diff --git a/package.json b/package.json index 843fdd9..009b62c 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "karma-chrome-launcher": "^0.1.7", "karma-coverage": "^0.3.1", "karma-jasmine": "^0.3.5", - "karma-jspm": "^1.1.5", + "karma-jspm": "^2.0.1-beta.2", "object.assign": "^1.0.3", "require-dir": "^0.1.0", "run-sequence": "^1.0.2", diff --git a/test/unit/configure.spec.js b/test/unit/configure.spec.js new file mode 100644 index 0000000..9cdb57d --- /dev/null +++ b/test/unit/configure.spec.js @@ -0,0 +1,21 @@ +import {configure} from '../../src/index'; + +class ConfigStub { + globalResources(...resources) { + this.resources = resources; + } +} + +describe('the Aurelia configuration', () => { + var mockedConfiguration; + + beforeEach(() => { + mockedConfiguration = new ConfigStub(); + configure(mockedConfiguration); + }); + + it('should register a global resource', () => { + expect(mockedConfiguration.resources).toContain('./hello-world'); + }); + +});