forked from YahooArchive/mojito-shaker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added support for shaker defined bootstrap and seed
- Loading branch information
Showing
6 changed files
with
104 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[ | ||
{ | ||
"settings": ["master"], | ||
"shaker": { | ||
"optimizeBootstrap": true | ||
} | ||
} | ||
] |
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 @@ | ||
/* | ||
* This test should be executed in the file's path. | ||
*/ | ||
|
||
var YUITest = require('yuitest').YUITest, | ||
Shaker = require('../../lib/core.js').ShakerCore, | ||
libfs = require('fs'); | ||
libpath = require('path'), | ||
sc = {}; | ||
|
||
var Assert = YUITest.Assert; | ||
var suite = new YUITest.TestSuite({ | ||
name: "Test bootstrap", | ||
setUp : function () { | ||
var relRoot = 'fixtures/test_bootstrap', | ||
root = libpath.join(__dirname, relRoot); | ||
|
||
sc = new ShakerCore({root: root}); | ||
} | ||
}); | ||
|
||
//console.log(shaker.logger.dump(result)); | ||
|
||
suite.add( new YUITest.TestCase({ | ||
name: "Unit Test", | ||
//console.log(shaker.logger.dump(result)); | ||
'test config bootstrap is true': function () { | ||
var shakerConfig = sc.getAppShakerConfigByContext({}); | ||
Assert.isTrue(shakerConfig.optimizeBootstrap); | ||
}, | ||
'test inlie file augmentation': function () { | ||
var app = sc.getAppModuleResources(); | ||
}, | ||
testFoo : function (){ | ||
Assert.isTrue(true); | ||
} | ||
})); | ||
|
||
YUITest.TestRunner.add(suite); |