Skip to content

Commit

Permalink
docs(nxdev): add redirect rules tests (#10375)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcabanes committed May 18, 2022
1 parent 7b0f8d1 commit 8c803c1
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions nx-dev/nx-dev/redirect-rules.config.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import redirectRules from './redirect-rules.config';

describe('Redirect rules configuration', () => {
describe('Safety checks', () => {
it('should not redirect to itself', () => {
const rules = {
...redirectRules.overviewUrls,
...redirectRules.guideUrls,
...redirectRules.schemaUrls,
};

for (let k of Object.keys(rules)) {
expect(k).not.toEqual(rules[k]);
}
});
});
});

1 comment on commit 8c803c1

@vercel
Copy link

@vercel vercel bot commented on 8c803c1 May 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx.dev
nx-dev-git-master-nrwl.vercel.app
nx-dev-nrwl.vercel.app
nx-five.vercel.app

Please sign in to comment.