Introducing unit testing with Karma + Jasmine.

This commit is contained in:
Gunther Brunner
2014-08-19 20:20:18 +09:00
parent 0753ac4730
commit b2a354dd84
3 changed files with 26 additions and 1 deletions

10
res/app/hello-test.js Normal file
View File

@@ -0,0 +1,10 @@
describe('greeter', function () {
function greet(str) {
return 'Helloaw, ' + str
}
it('should say Hello to the World', function () {
expect(greet('World')).toEqual('Hello, World!')
})
})