Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
151 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
access=public |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
export class Greeter { | ||
constructor(private greeting: string) { } | ||
greet() { | ||
return `Hello, ${this.greeting}!`; | ||
return `Hello, ${this.greeting}!` | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
import { Greeter } from '../Greeter'; | ||
import { Greeter } from '../Greeter' | ||
|
||
describe(`Greeter`, () => { | ||
|
||
let greeter: Greeter; | ||
let greeter: Greeter | ||
|
||
beforeEach(() => { | ||
greeter = new Greeter('World'); | ||
}); | ||
greeter = new Greeter('World') | ||
}) | ||
|
||
it(`should greet`, () => { | ||
|
||
const actual = greeter.greet(); | ||
const expected = 'Hello, World!'; | ||
const actual = greeter.greet() | ||
const expected = 'Hello, World!' | ||
|
||
expect(actual).toBe(expected); | ||
expect(actual).toBe(expected) | ||
|
||
}); | ||
}) | ||
|
||
}); | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.