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

Commit

Permalink
Merge pull request #54 from FountainJS/jsdom
Browse files Browse the repository at this point in the history
Update deps and interactive jsdom
  • Loading branch information
Mehdy Dara authored Sep 23, 2016
2 parents 6c15d6d + 3207ad4 commit 3c074fe
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 6 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"chai": "^3.5.0",
"co": "^4.6.0",
"co-mocha": "^1.1.2",
"cross-spawn": "^2.1.5",
"eslint": "^2.4.0",
"cross-spawn": "^4.0.0",
"eslint": "^3.5.0",
"eslint-config-angular": "^0.5.0",
"eslint-config-xo-react": "^0.6.0",
"eslint-config-xo-space": "^0.12.0",
Expand All @@ -32,19 +32,19 @@
"eslint-plugin-html": "^1.5.2",
"eslint-plugin-react": "^4.3.0",
"fixture-stdout": "^0.2.1",
"globby": "^4.0.0",
"globby": "^6.0.0",
"jsdom": "swiip/jsdom#zonejs-compat-usable",
"lodash": "^4.6.1",
"mkdirp-promise": "^2.0.0",
"mocha": "^2.4.5",
"mocha": "^3.0.2",
"mz": "^2.4.0",
"rimraf-promise": "^2.0.0",
"sauce-connect-launcher": "^0.14.0",
"semver": "^5.1.0",
"through2-spy": "^2.0.0",
"toposort": "^0.2.12",
"toposort": "^1.0.0",
"tslint": "^3.7.4",
"typescript": "^1.8.10",
"typescript": "^2.0.3",
"webdriverio": "^4.0.5",
"yeoman-test": "^1.1.0"
},
Expand Down
39 changes: 39 additions & 0 deletions test/interactive-test-jsdom.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
'use strict';

require('co-mocha');

const gulp = require('./helpers/gulp-helper');
const yeoman = require('./helpers/yeoman-helper');
const linter = require('./helpers/linter-helper');
const unit = require('./helpers/unit-helper');
const jsdom = require('./helpers/jsdom-helper');

describe('fountain interactive integration test with jsdom', function () {
this.timeout(0);

before(function *() {
yield yeoman.prepare();
});

it(`should test linter on `, function *() {
const options = yield yeoman.run();
yield linter.linterTest(options);
});

it('should run unit tests', function *() {
const result = yield gulp.test();
unit.unitTests(result);
});

it('should run "gulp serve" and e2e on number of Techs listed', function *() {
const url = yield gulp.serve();
yield jsdom.run(url);
gulp.killServe();
});

it('should run "gulp serve:dist" and e2e on number of Techs listed', function *() {
const url = yield gulp.serveDist();
yield jsdom.run(url);
gulp.killServe();
});
});

0 comments on commit 3c074fe

Please sign in to comment.