Skip to content

Commit

Permalink
ddd
Browse files Browse the repository at this point in the history
  • Loading branch information
nulltoken committed Feb 1, 2020
1 parent 9f04eef commit 78b6c8f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/__tests__/spectral.jest.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,12 @@ describe('Spectral', () => {
}),
);

expect(s.exceptions).toEqual({});
Object.keys(s.exceptions).forEach(p => expect(path.isAbsolute(p)).toEqual(true));

expect(Object.entries(s.exceptions)).toEqual([
[expect.stringMatching('^/test/file.yaml#/object/values/1$'), ['dummy-rule', 'info-matches-stoplight']],
[expect.stringMatching('/__tests__/__fixtures__/another.yaml#$'), ['dummy-rule']],
]);
});

test('should support loading rulesets over http', async () => {
Expand Down

0 comments on commit 78b6c8f

Please sign in to comment.