Archived
1
0
This repository has been archived on 2024-09-09. You can view files and clone it, but cannot push or open issues or pull requests.
code-server/test/unit
Joe Previte 83746c8a1f
refactor: remove null check in register.ts options.base
Inside registerServiceWorker, we were originally using the nullash coalescing
operator to check if options.base was null or undefined. However, I realized
this check is not necessary.

If you look at getOptions' return value, we return an object with a key "base"
which is of type "string". We get that value by calling resolveBase which always
returns a string.

As a result, we didn't need to check if options.base was null or undefined
because it never can be.
2021-04-23 17:09:03 -07:00
..
routes refactor: change limiter.Try() to .removeToken() 2021-04-19 10:57:50 -07:00
test-plugin chore: update code-server path in tsconfig 2021-03-12 12:00:57 -07:00
cli.test.ts Merge branch 'main' into jsjoeio/upgrade-vscode-1.54 2021-03-17 13:51:27 -07:00
constants.test.ts refactor: move unit tests to test/unit 2021-03-12 12:00:56 -07:00
emitter.test.ts refactor: move unit tests to test/unit 2021-03-12 12:00:56 -07:00
health.test.ts refactor: move unit tests to test/unit 2021-03-12 12:00:56 -07:00
http.test.ts refactor: move unit tests to test/unit 2021-03-12 12:00:56 -07:00
plugin.test.ts refactor: move unit tests to test/unit 2021-03-12 12:00:56 -07:00
proxy.test.ts refactor: move unit tests to test/unit 2021-03-12 12:00:56 -07:00
register.test.ts refactor: remove null check in register.ts options.base 2021-04-23 17:09:03 -07:00
serviceWorker.test.ts refactor: move unit tests to test/unit 2021-03-12 12:00:56 -07:00
socket.test.ts Replace fs-extra with fs.promises 2021-03-16 12:51:08 -05:00
update.test.ts Replace fs-extra with fs.promises 2021-03-16 12:51:08 -05:00
util.test.ts feat: add tests for registerServiceWorker 2021-04-23 16:31:56 -07:00