total-typescript/advanced-patterns-workshop

Exercise 08 - Test failing with solution

cesarnml opened this issue · 0 comments

Steps to reproduce:

  1. Copy 08-add-to-window.solution.ts to 08-add-to-window.problem.ts
  2. Run npm run exercise 08

Test will fail with following error:

Screenshot 2023-03-22 at 15 55 17

In addition, the greeting returned doesn't match the test expectation.

window.makeGreetingSolution = () => 'Hello!'

it('Should let you call makeGreetingSolution from the window object', () => {
  expect(window.makeGreetingSolution()).toBe('Hello, world!')