GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — JavaScript/String/test/MaxWord.test.js at master · TheAlgorithms/JavaScript Expand file tree/ Copy pathMaxWord.test.jsMore file actions 12 lines (11 loc) · 358 Bytes / Copy pathMaxWord.test.jsFile metadata and controls12 lines (11 loc) · 358 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 import { maxWord } from '../MaxWord' describe('Testing the maxWord function', () => { it('Expect throw with non string argument', () => { expect(() => maxWord(10)).toThrow() }) it('get the max word', () => { const string = 'be be be be a a banana' const mostOccurringWord = maxWord(string) expect(mostOccurringWord).toBe('be') }) }) |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |