Commit 2aadaa5
Switch npm test to using mocha directly (#54)
Remove gulp-mocha-phantomjs dependency and run tests without a
browser context. Loading test.html in a browser still succeeds.
Remove gulp test task.
Update to latest chai version now phantomjs is not involved.
Introduce setup file for tests that requires the needed components
and populates the global object. This can be folded back into the
test file later and a browser importable version generated as a step
in the build process. For now it needs some lint overrides.
Only handle requests in the mock XMLHttpRequest implementation which
match the endpoint url.1 parent abeda70 commit 2aadaa5
5 files changed
Lines changed: 83 additions & 628 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
| |||
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | 31 | | |
39 | 32 | | |
40 | 33 | | |
| |||
65 | 58 | | |
66 | 59 | | |
67 | 60 | | |
68 | | - | |
| 61 | + | |
69 | 62 | | |
0 commit comments