-
Notifications
You must be signed in to change notification settings - Fork 1
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 #542 from realtymapsDev/dev/nem/gulpFixes
gulp fixes and reverts
- Loading branch information
Showing
8 changed files
with
127 additions
and
34 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
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
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
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,34 @@ | ||
subject = require '../../gulp/tasks/markup' | ||
_testCb = null | ||
|
||
describe 'gulp markup', -> | ||
beforeEach -> | ||
_testCb = null | ||
subject.setTestCb null | ||
|
||
afterEach -> | ||
_testCb = null | ||
subject.setTestCb null | ||
|
||
describe 'watch', -> | ||
|
||
['map', 'admin'].map (name) -> | ||
testName:name | ||
camelCaseName: if name is 'map' then '' else name.toInitCaps() | ||
. forEach (names) -> | ||
|
||
describe names.testName, -> | ||
it 'SHOULD ONLY WATCH', (done) -> | ||
called = false | ||
|
||
_testCb = -> | ||
called = true | ||
|
||
subject.setTestCb(_testCb) | ||
watcher = subject["watch#{names.camelCaseName}Impl"]() | ||
|
||
setTimeout -> | ||
called.should.equal(false) | ||
watcher.end() | ||
done() | ||
, 200 |
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,34 @@ | ||
subject = require '../../gulp/tasks/styles' | ||
_testCb = null | ||
|
||
describe 'gulp styles', -> | ||
beforeEach -> | ||
_testCb = null | ||
subject.setTestCb null | ||
|
||
afterEach -> | ||
_testCb = null | ||
subject.setTestCb null | ||
|
||
describe 'watch', -> | ||
|
||
['map', 'admin'].map (name) -> | ||
testName:name | ||
camelCaseName: if name is 'map' then '' else name.toInitCaps() | ||
. forEach (names) -> | ||
|
||
describe names.testName, -> | ||
it 'SHOULD ONLY WATCH', (done) -> | ||
called = false | ||
|
||
stylesTestCb = -> | ||
called = true | ||
|
||
subject.setTestCb(_testCb) | ||
watcher = subject["watch#{names.camelCaseName}Impl"]() | ||
|
||
setTimeout -> | ||
called.should.equal(false) | ||
watcher.end() | ||
done() | ||
, 200 |