Skip to content

Commit

Permalink
test: update calculator test
Browse files Browse the repository at this point in the history
  • Loading branch information
yjaaidi committed Dec 6, 2023
1 parent 7196fcc commit 26063ab
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions apps/whiskmate/src/calculator.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
class Calculator {
/**
* @deprecated 🚧 Work in progress.
*/
compute(expression: string) {
throw new Error('🚧 work in progress!');
}
}

describe('calculator', () => {
it.skip('should handle addition', () => {
// create new calculator
// calculator.compute('1 + 2')
// check result is 3
const calculator = new Calculator();
const result = calculator.compute('1 + 2');
expect(result).toBe(3);
});
});

0 comments on commit 26063ab

Please sign in to comment.