浏览代码

phantomjs doesnt have promises

Adam Shaw 9 年之前
父节点
当前提交
1228ba6732
共有 2 个文件被更改,包括 2 次插入0 次删除
  1. 1 0
      karma.conf.js
  2. 1 0
      package.json

+ 1 - 0
karma.conf.js

@@ -10,6 +10,7 @@ module.exports = function(config) {
 
 		// list of files / patterns to load in the browser
 		files: [
+			'node_modules/native-promise-only/lib/npo.src.js',
 			'node_modules/moment/moment.js',
 			'node_modules/jquery/dist/jquery.js',
 			'node_modules/components-jqueryui/jquery-ui.js',

+ 1 - 0
package.json

@@ -58,6 +58,7 @@
     "karma-phantomjs-launcher": "^1.0.0",
     "lodash": "^4.14.1",
     "moment-timezone": "^0.5.5",
+    "native-promise-only": "^0.8.1",
     "phantomjs-prebuilt": "^2.1.7",
     "socket.io": "1.4.5",
     "yargs": "^4.8.1"