"description": "Evergreen ILS Browser Staff Client",
"version": "0.0.1",
"license": "GPL",
- "homepage": "http://evergreen-ils.org/",
- "devDependencies": {
- "angular": "~1.5",
- "angular-animate": "~1.5.3",
- "angular-ui-bootstrap": "~1.2.4",
- "angular-cookies": "~1.5.8",
- "angular-file-saver": "~1.1.0",
- "angular-hotkeys": "^1.7.0",
- "angular-location-update": "~0.0.2",
- "angular-mocks": "~1.5.0",
- "angular-route": "~1.5.0",
- "angular-tree-control": "~0.2.28",
- "angular-order-object-by": "rxfork/ngOrderObjectBy#npm",
- "lovefield": "*",
- "bootstrap": "~3.3.6",
- "grunt": "~0.4.4",
- "grunt-cli": "^0.1.13",
- "grunt-contrib-concat": "^0.4.0",
- "grunt-contrib-copy": "^0.5.0",
- "grunt-contrib-cssmin": "^0.9.0",
- "grunt-contrib-jasmine": "^0.6.4",
- "grunt-contrib-uglify": "^0.4.0",
- "grunt-exec": "^0.4.5",
- "grunt-karma": "^0.8.3",
- "iframe-resizer": "^3.5.5",
- "jquery": "~2.2.1",
- "karma": "^0.12.14",
- "karma-jasmine": "^0.1.5",
- "karma-phantomjs-launcher": "^1.0.0",
- "karma-script-launcher": "~0.1.0",
- "karma-spec-reporter": "0.0.12",
- "karma-story-reporter": "^0.2.2",
- "ng-toast": "~2.0.0",
- "phantomjs-prebuilt": "^2.1.7"
- },
+ "homepage": "https://evergreen-ils.org/",
+ "devDependencies": {},
"scripts": {
"test": "grunt test"
+ },
+ "dependencies": {
+ "angular": "~1.6",
+ "angular-animate": "^1.6.4",
+ "angular-cookies": "^1.6.4",
+ "angular-file-saver": "^1.1.3",
+ "angular-hotkeys": "^1.7.0",
+ "angular-location-update": "0.0.2",
+ "angular-mocks": "^1.6.4",
+ "angular-order-object-by": "github:rxfork/ngOrderObjectBy#npm",
+ "angular-route": "^1.6.4",
+ "angular-tree-control": "^0.2.28",
+ "angular-ui-bootstrap": "^2.5.0",
+ "bootstrap": "^3.3.7",
+ "grunt": "^1.0.1",
+ "grunt-cli": "^1.2.0",
+ "grunt-contrib-concat": "^1.0.1",
+ "grunt-contrib-copy": "^1.0.0",
+ "grunt-contrib-cssmin": "^2.2.0",
+ "grunt-contrib-jasmine": "^1.1.0",
+ "grunt-contrib-uglify": "^3.0.1",
+ "grunt-exec": "^2.0.0",
+ "grunt-karma": "^2.0.0",
+ "iframe-resizer": "^3.5.14",
+ "jquery": "^3.2.1",
+ "karma": "^1.7.0",
+ "karma-jasmine": "^1.1.0",
+ "karma-phantomjs-launcher": "^1.0.4",
+ "karma-script-launcher": "^1.0.0",
+ "karma-spec-reporter": "0.0.31",
+ "karma-story-reporter": "^0.3.1",
+ "lovefield": "^2.1.12",
+ "ng-toast": "^2.0.0",
+ "phantomjs-prebuilt": "^2.1.14"
}
}
beforeEach(module('egCoreMod'));
beforeEach(function () {
- this.addMatchers({
+ jasmine.addMatchers({
// "2 days" may be 47, 48, or 49 hours depending on the
// proximity to and direction of a time change event.
// This does not take leap seconds into account.
toBe2DaysOfSeconds: function () {
- var actual = this.actual;
- var hours_47 = 169200;
- var hours_48 = 172800;
- var hours_49 = 176400;
-
- this.message = function () {
- return "Expected " + actual + " to be " +
- hours_47 + ", " + hours_48 + ", or " + hours_49;
+ return {
+ compare : function(actual) {
+ var hours_47 = 169200;
+ var hours_48 = 172800;
+ var hours_49 = 176400;
+
+ var passed = (
+ actual == hours_47 ||
+ actual == hours_48 ||
+ actual == hours_49
+ );
+
+ return {
+ pass: passed,
+ message: "Expected " + actual + " to be " +
+ hours_47 + ", " + hours_48 + ", or " + hours_49
+ };
+ }
};
-
- return (
- actual == hours_47 ||
- actual == hours_48 ||
- actual == hours_49
- );
}
});
});