Skip to content

Commit

Permalink
feat: add test for sum function [issue fork-commit-merge#652]
Browse files Browse the repository at this point in the history
  • Loading branch information
yaralviana committed Sep 25, 2023
1 parent 5be6ba6 commit e5c98cc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tasks/vitest/easy/src/sum.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ import sum from "./sum";
import { describe, expect, it } from "vitest";

// TODO: Create the test required in the task
describe('sum function test', () => {
it('should return 0 when no numbers are provided', () => {
expect(sum()).toBe(0);
});
});

0 comments on commit e5c98cc

Please sign in to comment.