parent
1808c00b01
commit
771371d081
@ -0,0 +1,7 @@
|
||||
export default class Jester {
|
||||
constructor(){}
|
||||
|
||||
hello(){
|
||||
return "Hello"
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,5 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = {
|
||||
presets: ['@babel/preset-env'],
|
||||
};
|
||||
@ -0,0 +1,15 @@
|
||||
import Jester from "jester"
|
||||
|
||||
describe('this test should pass', () => {
|
||||
test('very first test', () => {
|
||||
expect(true).toBe(true)
|
||||
})
|
||||
|
||||
test('Jester.hello returns greeting', () =>{
|
||||
const jester = new Jester()
|
||||
expect(jester.hello()).toBe("Hello")
|
||||
})
|
||||
test('fail', () => {
|
||||
expect(false).toBe(true)
|
||||
})
|
||||
})
|
||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue