Remove skips from basic calculator tests

This commit is contained in:
Devansh_Baghel 2023-05-08 00:29:31 +05:30
parent 3e530e3f61
commit eea0f3b54d
1 changed files with 5 additions and 5 deletions

View File

@ -15,13 +15,13 @@ describe('add', () => {
});
describe('subtract', () => {
test.skip('subtracts numbers', () => {
test('subtracts numbers', () => {
expect(calculator.subtract(10,4)).toBe(6);
});
});
describe('sum', () => {
test.skip('computes the sum of an empty array', () => {
test('computes the sum of an empty array', () => {
expect(calculator.sum([])).toBe(0);
});
@ -39,7 +39,7 @@ describe('sum', () => {
});
describe('multiply', () => {
test.skip('multiplies two numbers', () => {
test('multiplies two numbers', () => {
expect(calculator.multiply([2,4])).toBe(8);
});
@ -49,13 +49,13 @@ describe('multiply', () => {
});
describe('power', () => {
test.skip('raises one number to the power of another number', () => {
test('raises one number to the power of another number', () => {
expect(calculator.power(4,3)).toBe(64); // 4 to third power is 64
});
});
describe('factorial', () => {
test.skip('computes the factorial of 0', () => {
test('computes the factorial of 0', () => {
expect(calculator.factorial(0)).toBe(1); // 0! = 1
});