Permalink
Browse files

Updated packaging tests

  • Loading branch information...
1 parent 1d3afd2 commit 0cc35f81f5383bff670357949e46d17e627a2d39 Kevin Malakoff committed Jun 12, 2012
Showing with 10 additions and 12 deletions.
  1. +6 −3 easy-bake-config.yml
  2. +3 −0 package.json
  3. +1 −9 test/packaging/test.html
View
@@ -9,11 +9,14 @@ tests:
directories:
- test/core
- test/packaging
- options:
+ modes:
+ build:
+ bundles:
+ test/packaging/build/bundle.js:
+ lifecycle: lifecycle.js
+ no_files_ok: ['test/packaging']
test:
command: phantomjs
runner: phantomjs-qunit-runner.js
files:
- '**/*.html'
- build:
- no_files_ok: ['test/packaging']
View
@@ -16,6 +16,9 @@
"postinstall": "cake postinstall",
"test": "cake -c -b test"
},
+ "optionalDependencies": {
+ "browserify": "latest"
+ },
"main" : "lifecycle.js",
"version" : "1.0.1"
View
@@ -7,15 +7,7 @@
<script type="text/javascript" src="../vendor/qunit/qunit.js"></script>
<script type="text/javascript" src="../vendor/qunit/jslitmus.js"></script>
- <script type="text/javascript">
- window.mock_requires = {};
- window.require = function(path) { return window.mock_requires[path]; };
- window.exports = {};
- </script>
- <script type="text/javascript" src="../../lifecycle.js"></script>
- <script type="text/javascript">
- window.mock_requires['lifecycle'] = window['exports']; delete window['exports']; delete window['LC']; delete window['Lifecycle']
- </script>
+ <script type="text/javascript" src="build/bundle.js"></script>
<script type="text/javascript" src="../core/test.js"></script>
<script type="text/javascript" src="../core/build/test_coffeescript.js"></script>

0 comments on commit 0cc35f8

Please sign in to comment.