mirror of
https://github.com/microsoft/frontend-bootcamp.git
synced 2026-01-26 14:56:42 +08:00
added small exercise for jest testing
This commit is contained in:
16
step2-04/exercise/src/stack.spec.ts
Normal file
16
step2-04/exercise/src/stack.spec.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
describe('stack', () => {
|
||||
it('should push item to the top of the stack', () => {
|
||||
// implement test here:
|
||||
// 1. require the stack
|
||||
// 2. create stack push calls to place some items in the stack
|
||||
// 3. write assertions via the expect() API
|
||||
});
|
||||
|
||||
it('should pop the item from the top of stack', () => {
|
||||
// implement test here:
|
||||
// 1. require the stack
|
||||
// 2. create stack push calls to place some items in the stack
|
||||
// 3. pop a few items off the stack
|
||||
// 4. write assertions via the expect() API
|
||||
});
|
||||
});
|
||||
1
step2-04/exercise/src/stack.ts
Normal file
1
step2-04/exercise/src/stack.ts
Normal file
@@ -0,0 +1 @@
|
||||
// Place your implementation from Step 2-01 exercise here
|
||||
Reference in New Issue
Block a user