commit | 9f085ff554c8e99a906d8f1b0963f5681faa8f47 | [log] [tgz] |
---|---|---|
author | Ben Rohlfs <brohlfs@google.com> | Fri Jan 27 08:23:33 2023 +0100 |
committer | Ben Rohlfs <brohlfs@google.com> | Mon Jan 30 10:54:09 2023 +0100 |
tree | d0092b7e4ca2a21615000c1cd980c10821daff0b | |
parent | 1e4d415b77af9695c26cc870e8c20d2c275b3c12 [diff] [blame] |
Add a test for LOG_IN_OR_OUT route and add a missing `^` Release-Notes: skip Change-Id: I5ecc40ee13dc238c6e80236a52f391c1c746e142
diff --git a/polygerrit-ui/app/elements/core/gr-router/gr-router_test.ts b/polygerrit-ui/app/elements/core/gr-router/gr-router_test.ts index e1ba42c..35ce54c 100644 --- a/polygerrit-ui/app/elements/core/gr-router/gr-router_test.ts +++ b/polygerrit-ui/app/elements/core/gr-router/gr-router_test.ts
@@ -1016,6 +1016,12 @@ }); }); + test('LOG_IN_OR_OUT pass through', async () => { + // LOG_IN_OR_OUT: /^\/log(in|out)(\/(.+))?$/, + await checkUrlNotMatched('/login/asdf'); + await checkUrlNotMatched('/logout/asdf'); + }); + test('PLUGIN_SCREEN', async () => { // PLUGIN_SCREEN: /^\/x\/([\w-]+)\/([\w-]+)\/?/, await checkUrlToState('/x/foo/bar', {