mirror of
https://github.com/BorysLevytskyi/BitwiseCmd.git
synced 2025-12-19 19:22:45 +01:00
Started to implement tests
This commit is contained in:
15
karma.conf.js
Normal file
15
karma.conf.js
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
module.exports = function(config) {
|
||||||
|
config.set({
|
||||||
|
frameworks: ['jasmine'],
|
||||||
|
|
||||||
|
files: [
|
||||||
|
'src/js/core/core.js',
|
||||||
|
'src/js/core/is.js',
|
||||||
|
'src/js/core/di.js',
|
||||||
|
'src/js/core/appShell.js',
|
||||||
|
'src/js/core/observable.js',
|
||||||
|
'src/js/app.js',
|
||||||
|
'tests/*.js'
|
||||||
|
]
|
||||||
|
});
|
||||||
|
};
|
||||||
@@ -21,6 +21,9 @@
|
|||||||
"grunt-contrib-copy": "^0.8.0",
|
"grunt-contrib-copy": "^0.8.0",
|
||||||
"grunt-contrib-cssmin": "^0.12.2",
|
"grunt-contrib-cssmin": "^0.12.2",
|
||||||
"grunt-contrib-uglify": "^0.9.1",
|
"grunt-contrib-uglify": "^0.9.1",
|
||||||
"grunt-processhtml": "^0.3.7"
|
"grunt-processhtml": "^0.3.7",
|
||||||
|
"jasmine": "^2.2.1",
|
||||||
|
"karma": "^0.12.31",
|
||||||
|
"karma-jasmine": "^0.2.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
8
tests/stubSpec.js
Normal file
8
tests/stubSpec.js
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
describe("App test", function() {
|
||||||
|
var app = window.app;
|
||||||
|
|
||||||
|
it("shouldn't be null", function() {
|
||||||
|
console.log(app);
|
||||||
|
expect(app.constructor).notBeNull();
|
||||||
|
});
|
||||||
|
});
|
||||||
Reference in New Issue
Block a user