Skip to content

Commit

Permalink
Fix all tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jpetitcolas committed Mar 27, 2015
1 parent e66d0ae commit af4d303
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/javascripts/test/function.bind.shim.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// PhantomJS doesn't support bind yet
Function.prototype.bind = Function.prototype.bind || function (thisp) {
var fn = this;
return function () {
return fn.apply(thisp, arguments);
};
};
1 change: 1 addition & 0 deletions src/javascripts/test/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ module.exports = function (config) {
{pattern: 'ng-admin/lib/polyfill/bind.js', included: true},

// Test files
{pattern: 'test/function.bind.shim.js', included: true},
{pattern: 'test/mock/*.js', included: false},
{pattern: 'test/unit/**/**/*.js', included: false},

Expand Down

0 comments on commit af4d303

Please sign in to comment.