Skip to content

Commit

Permalink
[CI] Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jan 15, 2025
1 parent 912d376 commit 82729ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exercises/practice/anagram/anagram.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import { describe, it, expect, xit } from '@jest/globals'
import { Anagram } from './anagram.ts'

let areSetsEqual = (setA, setB) =>
setA.size === setB.size && [...setA].every((val) => setB.has(val));
setA.size === setB.size && [...setA].every((val) => setB.has(val))

describe('Anagram', () => {
it('no matches', () => {
const subject = new Anagram('diaper')
const matches = subject.matches('hello', 'world', 'zombies', 'pants')
const expected = []

expect(areSetsEqual(new Set(expected), new Set(matches))).toEqual(true)
})

Expand Down

0 comments on commit 82729ba

Please sign in to comment.