mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 00:23:25 +02:00
Introducing unit testing with Karma + Jasmine.
This commit is contained in:
10
res/app/hello-test.js
Normal file
10
res/app/hello-test.js
Normal 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!')
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user