Skip to content
This repository was archived by the owner on Jul 13, 2020. It is now read-only.

Commit 68d0d1e

Browse files
committed
add locate tests to ie8 tests
1 parent 2af4ba6 commit 68d0d1e

File tree

2 files changed

+21
-21
lines changed

2 files changed

+21
-21
lines changed

test/system.normalize.spec.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,25 @@ describe('System', function () {
9292
});
9393
});
9494
});
95+
96+
describe('#locate', function () {
97+
98+
beforeEach(function () {
99+
System.baseURL = 'http://example.org/a/';
100+
});
101+
102+
it('should resolve paths', function () {
103+
expect(System.locate({name: '@abc/def'}))
104+
.to.equal('http://example.org/a/@abc/def.js');
105+
expect(System.locate({name: ' abc/def'}))
106+
.to.equal('http://example.org/a/abc/def.js');
107+
});
108+
109+
it('should resolve paths with the existing config', function () {
110+
System.paths['path/*'] = '/test/*.js';
111+
expect(System.locate({name: 'path/test'}))
112+
.to.equal('http://example.org/test/test.js');
113+
});
114+
115+
});
95116
});

test/system.spec.js

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -16,27 +16,6 @@ describe('System', function () {
1616

1717
});
1818

19-
describe('#locate', function () {
20-
21-
beforeEach(function () {
22-
System.baseURL = 'http://example.org/a/';
23-
});
24-
25-
it('should resolve paths', function () {
26-
expect(System.locate({name: '@abc/def'}))
27-
.to.equal('http://example.org/a/@abc/def.js');
28-
expect(System.locate({name: ' abc/def'}))
29-
.to.equal('http://example.org/a/abc/def.js');
30-
});
31-
32-
it('should resolve paths with the existing config', function () {
33-
System.paths['path/*'] = '/test/*.js';
34-
expect(System.locate({name: 'path/test'}))
35-
.to.equal('http://example.org/test/test.js');
36-
});
37-
38-
});
39-
4019
describe('#import', function () {
4120

4221
describe('an ES5 script', function () {

0 commit comments

Comments
 (0)