Skip to content

Commit

Permalink
improve var names
Browse files Browse the repository at this point in the history
  • Loading branch information
derberg authored May 27, 2020
1 parent 20456bd commit 33dd834
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/templateConfigValidator.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const { validateTemplateConfig } = require('../lib/templateConfigValidator');
const fs = require('fs');
const path = require('path');
const streetlightYAML = fs.readFileSync(path.resolve(__dirname, './docs/dummy.yml'), 'utf8');
const dummyYAML = fs.readFileSync(path.resolve(__dirname, './docs/dummy.yml'), 'utf8');

jest.mock('../lib/utils');

Expand All @@ -10,7 +10,7 @@ describe('Template Configuration Validator', () => {

beforeAll(async () => {
const { parse } = jest.requireActual('@asyncapi/parser');
asyncapiDocument = await parse(streetlightYAML);
asyncapiDocument = await parse(dummyYAML);
});

it('Validation doesn\'t throw errors if params are not passed and template has no config', () => {
Expand Down Expand Up @@ -146,4 +146,4 @@ describe('Template Configuration Validator', () => {

expect(templateConfig.conditionalFiles['my/path/to/file.js']).toBeDefined();
});
});
});

0 comments on commit 33dd834

Please sign in to comment.