Skip to content

Commit

Permalink
feat: 🚚 biome format
Browse files Browse the repository at this point in the history
  • Loading branch information
AkashRajpurohit committed Mar 16, 2024
1 parent 4860f95 commit 57f7381
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
18 changes: 9 additions & 9 deletions src/math/math.test.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { describe, it, expect } from 'vitest';
import { describe, expect, it } from 'vitest';

import { add, subtract } from '~/math/math';

describe('math', () => {
describe('add', () => {
it('1 + 2 = 3', () => expect(add(1, 2)).toEqual(3));
it('2 + 2 != 3', () => expect(add(1, 2)).toEqual(3));
});
describe('add', () => {
it('1 + 2 = 3', () => expect(add(1, 2)).toEqual(3));
it('2 + 2 != 3', () => expect(add(1, 2)).toEqual(3));
});

describe('subtract', () => {
it('2 - 1 = 1', () => expect(subtract(2, 1)).toEqual(1));
it('2 - 2 != 4', () => expect(subtract(2, 2)).toEqual(0));
});
describe('subtract', () => {
it('2 - 1 = 1', () => expect(subtract(2, 1)).toEqual(1));
it('2 - 2 != 4', () => expect(subtract(2, 2)).toEqual(0));
});
});
4 changes: 2 additions & 2 deletions src/math/math.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export function add(a: number, b: number) {
return a + b;
return a + b;
}

export function subtract(a: number, b: number) {
return a - b;
return a - b;
}

0 comments on commit 57f7381

Please sign in to comment.