Skip to content

Commit 63d662f

Browse files
author
Alex Perkins
committed
Update expect to chai.expect
- Updating expect to chai.expect. - Removing workaround for vuejs/vue#9698 - Minor logging refactor
1 parent 41ab8ef commit 63d662f

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

setup.js

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
1+
const expect = require('chai').expect;
2+
13
// setup JSDOM
24
process.stdout.write('Setting up JSDOM...');
35
require('jsdom-global')();
46

5-
// See https://github.com/vuejs/vue/issues/9698
6-
global.performance = window.performance;
7-
87
// See https://github.com/vuejs/vue-test-utils/issues/936#issuecomment-415386167
98
window.Date = Date;
109

11-
if (window && window.document) {
12-
process.stdout.write('OK.\r\n')
13-
} else {
14-
process.stdout.write('Not OK.\r\n')
15-
}
10+
process.stdout.write(window && window.document ? 'OK.\r\n' : 'Not OK.\r\n');
1611

17-
// make expect available globally
18-
global.expect = require('expect');
12+
// make chai.expect available globally
13+
global.expect = expect;

0 commit comments

Comments
 (0)