Skip to content
This repository was archived by the owner on Feb 27, 2019. It is now read-only.

Commit 3c074fe

Browse files
author
Mehdy Dara
authored
Merge pull request #54 from FountainJS/jsdom
Update deps and interactive jsdom
2 parents 6c15d6d + 3207ad4 commit 3c074fe

File tree

2 files changed

+45
-6
lines changed

2 files changed

+45
-6
lines changed

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
"chai": "^3.5.0",
2323
"co": "^4.6.0",
2424
"co-mocha": "^1.1.2",
25-
"cross-spawn": "^2.1.5",
26-
"eslint": "^2.4.0",
25+
"cross-spawn": "^4.0.0",
26+
"eslint": "^3.5.0",
2727
"eslint-config-angular": "^0.5.0",
2828
"eslint-config-xo-react": "^0.6.0",
2929
"eslint-config-xo-space": "^0.12.0",
@@ -32,19 +32,19 @@
3232
"eslint-plugin-html": "^1.5.2",
3333
"eslint-plugin-react": "^4.3.0",
3434
"fixture-stdout": "^0.2.1",
35-
"globby": "^4.0.0",
35+
"globby": "^6.0.0",
3636
"jsdom": "swiip/jsdom#zonejs-compat-usable",
3737
"lodash": "^4.6.1",
3838
"mkdirp-promise": "^2.0.0",
39-
"mocha": "^2.4.5",
39+
"mocha": "^3.0.2",
4040
"mz": "^2.4.0",
4141
"rimraf-promise": "^2.0.0",
4242
"sauce-connect-launcher": "^0.14.0",
4343
"semver": "^5.1.0",
4444
"through2-spy": "^2.0.0",
45-
"toposort": "^0.2.12",
45+
"toposort": "^1.0.0",
4646
"tslint": "^3.7.4",
47-
"typescript": "^1.8.10",
47+
"typescript": "^2.0.3",
4848
"webdriverio": "^4.0.5",
4949
"yeoman-test": "^1.1.0"
5050
},

test/interactive-test-jsdom.js

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
'use strict';
2+
3+
require('co-mocha');
4+
5+
const gulp = require('./helpers/gulp-helper');
6+
const yeoman = require('./helpers/yeoman-helper');
7+
const linter = require('./helpers/linter-helper');
8+
const unit = require('./helpers/unit-helper');
9+
const jsdom = require('./helpers/jsdom-helper');
10+
11+
describe('fountain interactive integration test with jsdom', function () {
12+
this.timeout(0);
13+
14+
before(function *() {
15+
yield yeoman.prepare();
16+
});
17+
18+
it(`should test linter on `, function *() {
19+
const options = yield yeoman.run();
20+
yield linter.linterTest(options);
21+
});
22+
23+
it('should run unit tests', function *() {
24+
const result = yield gulp.test();
25+
unit.unitTests(result);
26+
});
27+
28+
it('should run "gulp serve" and e2e on number of Techs listed', function *() {
29+
const url = yield gulp.serve();
30+
yield jsdom.run(url);
31+
gulp.killServe();
32+
});
33+
34+
it('should run "gulp serve:dist" and e2e on number of Techs listed', function *() {
35+
const url = yield gulp.serveDist();
36+
yield jsdom.run(url);
37+
gulp.killServe();
38+
});
39+
});

0 commit comments

Comments
 (0)