Skip to content

Commit

Permalink
test(@toss/utils): rewrite difference, differenceWith test code in en…
Browse files Browse the repository at this point in the history
…glish (#430)
  • Loading branch information
Gaic4o authored Mar 22, 2024
1 parent fb0d92d commit 556dda6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/common/utils/src/difference.spec.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import { difference, differenceWith } from './difference';

describe('difference는', () => {
it('두 개의 배열의 차이를 반환한다.', () => {
describe('difference', () => {
it('returns the difference of two arrays.', () => {
const a = [1, 2, 3, 4, 5];
const b = [2, 3, 4, 5, 6];
const result = difference(a, b);
expect(result).toEqual([1]);
});
});

describe('differenceWith는', () => {
it('`areItemsEqual`이 가리키는 대로 잘 difference 연산을 수행한다', function () {
describe('differenceWith', () => {
it('performs the difference operation as directed by `areItemsEqual`', function () {
const objects = [
{ x: 1, y: 2 },
{ x: 2, y: 1 },
Expand Down

0 comments on commit 556dda6

Please sign in to comment.