Skip to content

Commit

Permalink
Add sample test.
Browse files Browse the repository at this point in the history
  • Loading branch information
codecop committed Dec 7, 2023
1 parent 4f58c0b commit 9914d90
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
5 changes: 5 additions & 0 deletions TypeScript/app/hello.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export class Hello {
greeting() {
return "Hello World";
}
}
14 changes: 14 additions & 0 deletions TypeScript/test/hello.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { Hello } from "../app/hello";
import { expect } from "chai";

describe('Hello', () => {

it('shouldGreet', () => {
const hello = new Hello();

const greeting = hello.greeting();

expect(greeting).to.equal("Hello World");
});

});

0 comments on commit 9914d90

Please sign in to comment.