Przeglądaj źródła

phantomjs doesnt have promises

Adam Shaw 9 lat temu
rodzic
commit
1228ba6732
2 zmienionych plików z 2 dodań i 0 usunięć
  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
 		// list of files / patterns to load in the browser
 		files: [
 		files: [
+			'node_modules/native-promise-only/lib/npo.src.js',
 			'node_modules/moment/moment.js',
 			'node_modules/moment/moment.js',
 			'node_modules/jquery/dist/jquery.js',
 			'node_modules/jquery/dist/jquery.js',
 			'node_modules/components-jqueryui/jquery-ui.js',
 			'node_modules/components-jqueryui/jquery-ui.js',

+ 1 - 0
package.json

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