test(docs-infra): unnest unnecessarily nested test suite (#42452)

Previously, the `destinations` test suite in
`testFirebaseRedirection.spec.ts` was nested under the
`with legacy URLs` test suite. However, the two suites are unrelated and
there is no reason to have them nested.

This commit moves the `destinations` test suite to be beside (instead of
inside) the `with legacy URLs` one.

PR Close #42452
This commit is contained in:
George Kalpakas 2021-06-17 23:58:15 +03:00 committed by Dylan Hunn
parent e0338189b3
commit c66423ab2a
1 changed files with 5 additions and 5 deletions

View File

@ -24,12 +24,12 @@ describe('firebase.json redirect config', () => {
}
});
});
});
describe('destinations', () => {
loadRedirects().forEach(redirect => {
it('should match pattern "^(https?:/)?/.*"', () => {
expect(redirect.destination).toMatch(/^(https?:\/)?\/.*/);
});
describe('destinations', () => {
loadRedirects().forEach(redirect => {
it('should match pattern "^(https?:/)?/.*"', () => {
expect(redirect.destination).toMatch(/^(https?:\/)?\/.*/);
});
});
});