This repository has been archived by the owner on Feb 27, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #54 from FountainJS/jsdom
Update deps and interactive jsdom
- Loading branch information
Showing
2 changed files
with
45 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
}); | ||
}); |