Skip to content

Commit

Permalink
test(Variables): Improve test error reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
medikoo committed Dec 2, 2021
1 parent 9c75044 commit 6204672
Showing 1 changed file with 16 additions and 18 deletions.
34 changes: 16 additions & 18 deletions test/unit/lib/configuration/variables/resolve.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -429,24 +429,22 @@ describe('test/unit/lib/configuration/variables/resolve.test.js', () => {
});

it('should correctly record encountered variable sources', () => {
expect(variableSourcesInConfig).to.deep.equal(
new Set([
'sourceParam',
'sourceDirect',
'sourceAddress',
'sourceProperty',
'sourceResultVariables',
'sourceResolveVariablesInString',
'sourceResolveVariable',
'sourceIncomplete',
'sourceMissing',
'sourceUnrecognized',
'sourceError',
'sourceInfinite',
'sourceShared',
'sourceSharedProperty',
])
);
expect(Array.from(variableSourcesInConfig)).to.deep.equal([
'sourceParam',
'sourceDirect',
'sourceAddress',
'sourceProperty',
'sourceResultVariables',
'sourceResolveVariablesInString',
'sourceResolveVariable',
'sourceIncomplete',
'sourceMissing',
'sourceUnrecognized',
'sourceError',
'sourceInfinite',
'sourceShared',
'sourceSharedProperty',
]);
});

describe('"resolveVariable" source util', () => {
Expand Down

0 comments on commit 6204672

Please sign in to comment.