fixed some spellings

This commit is contained in:
Keshav Bohra
2021-10-05 12:49:23 +05:30
parent 199d2637cc
commit 1589263947
41 changed files with 80 additions and 80 deletions

View File

@ -6,7 +6,7 @@ describe('Testing the maxWord function', () => {
})
it('get the max word', () => {
const string = 'ba ba ba ba banana'
const mostOccuringWord = maxWord(string)
expect(mostOccuringWord).toBe('ba')
const mostOccurringWord = maxWord(string)
expect(mostOccurringWord).toBe('ba')
})
})

View File

@ -18,7 +18,7 @@ describe('checkIfPatternExists', () => {
const SUT = checkIfPatternExists(text, pattern)
expect(SUT).toBe(undefined)
})
it('expects to throw an error message when given inpuut is not a string', () => {
it('expects to throw an error message when given input is not a string', () => {
const text = 123444456
const pattern = 123
expect(() => checkIfPatternExists(text, pattern)).toThrow(