Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated packaging tests

  • Loading branch information...
commit 0cc35f81f5383bff670357949e46d17e627a2d39 1 parent 1d3afd2
@kmalakoff authored
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 easy-bake-config.yml
@@ -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
3  package.json
@@ -16,6 +16,9 @@
"postinstall": "cake postinstall",
"test": "cake -c -b test"
},
+ "optionalDependencies": {
+ "browserify": "latest"
+ },
"main" : "lifecycle.js",
"version" : "1.0.1"
View
10 test/packaging/test.html
@@ -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>
Please sign in to comment.
Something went wrong with that request. Please try again.