1 |
|
2 | var assert = require('assert');
|
3 |
|
4 |
|
5 | describe('A karma configuration using a __filenameOverride file', function () {
|
6 |
|
7 | it('uses the __filenameOverride for its filename and dirname', function () {
|
8 |
|
9 |
|
10 |
|
11 | assert(/integration-test[\/\\]test-files[\/\\]filename-override-context\.html$/.test(__filename),
|
12 | 'Expected "' + __filename + '" to end with "integration-test/test-files/filename-override-context.html"');
|
13 |
|
14 | assert(/integration-test[\/\\]test-files$/.test(__dirname),
|
15 | 'Expected "' + __dirname + '" to end with "integration-test/test-files"');
|
16 |
|
17 | assert(/integration-test[\/\\]test-files[\/\\]filename-override-context\.html$/.test(module.filename),
|
18 | 'Expected "' + module.filename + '" to end with ' +
|
19 | '"integration-test/test-files/filename-override-context.html"');
|
20 | assert.strictEqual(module.id, '.');
|
21 | });
|
22 |
|
23 | it('doesn\'t load the file at all', function () {
|
24 |
|
25 | });
|
26 | });
|