This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app
Jarek Radosz b78ab82284 DEV: Fix a flaky/leaky test
* pretender wasn't catching the request because it ran after this test finished
* restore wasn't needed, we do `sinon.restore()` after each test

The error was:
```
↪ Unit | Model | user::resolvedTimezone [✔]
↪ Unit | Utility | url::routeTo with prefixUnhandled request in test environment: /forum/u/chuck.json (PUT)
Error: Unhandled request in test environment: /forum/u/chuck.json (PUT)
    at Pretender.server.unhandledRequest (discourse/tests/setup-tests:173:15)
    at Pretender.handleRequest (pretender:400:14)
    at FakeRequest.send (pretender:169:21)
    at Object.send (jquery:10100:10)
    at Function.ajax (jquery:9683:15)
    at performAjax (discourse/app/lib/ajax:174:19)
    at eval (discourse/app/lib/ajax:183:11)
    at invokeCallback (ember:63104:17)
    at publish (ember:63087:9)
    at eval (ember:57463:16)
 [✘]
```

A minimal reproduction:
`http://localhost:3001/qunit?seed=3&testId=da76996b&testId=e52a53e7`
2021-06-22 09:49:09 +08:00
..
assets DEV: Fix a flaky/leaky test 2021-06-22 09:49:09 +08:00
controllers FEATURE: Improvement to history stack handling on server errors 2021-06-21 11:09:23 -07:00
helpers PERF: Eager load Theme associations in Stylesheet Manager. 2021-06-21 11:06:58 +08:00
jobs PERF: Update post uploads secure status in a job (#13459) 2021-06-21 19:15:24 +03:00
mailers FIX: Remove duplicate add_unsubscribe_link hash key (#13467) 2021-06-22 11:25:39 +10:00
models FEATURE: Add more columns to outbound EmailLog (#13449) 2021-06-22 08:32:01 +10:00
serializers Revert "PERF: Cache categories in Site model take 2." 2021-06-21 12:25:04 -07:00
services FIX: Add word boundaries to replace and tag watched words (#13405) 2021-06-18 18:54:06 +03:00
views Code review comments. 2021-06-21 11:06:58 +08:00