Skip to content

Commit

Permalink
refactor: fix codeclimate complaints
Browse files Browse the repository at this point in the history
SL-786
  • Loading branch information
Chris Miaskowski committed Dec 3, 2018
1 parent a793b6c commit 585f1e1
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions src/__tests__/spectral.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
const merge = require('lodash.merge');
import { Spectral } from '../index';
import { defaultRuleset } from '../rulesets';
import { IRuleset, RuleFunction, RuleSeverity, RuleType } from '../types';
Expand Down Expand Up @@ -31,22 +32,8 @@ describe('spectral', () => {
},
},
};
const expectedCustomRuleSet = {
rules: {
oas2: {
rule1: {
type: RuleType.STYLE,
function: RuleFunction.TRUTHY,
path: '$',
enabled: true,
summary: '',
input: {
properties: 'something',
},
},
},
},
};
// deep copy
const expectedCustomRuleSet = merge({}, givenCustomRuleSet);

const s = new Spectral({ rulesets: [givenCustomRuleSet] });

Expand Down

0 comments on commit 585f1e1

Please sign in to comment.