Started to implement tests

This commit is contained in:
BorisLevitskiy
2015-04-09 17:29:40 +03:00
parent f1f8526269
commit 65bf36141e
3 changed files with 27 additions and 1 deletions

15
karma.conf.js Normal file
View 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'
]
});
};

View File

@@ -21,6 +21,9 @@
"grunt-contrib-copy": "^0.8.0",
"grunt-contrib-cssmin": "^0.12.2",
"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
View 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();
});
});