Skip to content

Commit

Permalink
fixup! address review comments in tests
Browse files Browse the repository at this point in the history
Signed-off-by: Miroslav Bajtoš <[email protected]>
  • Loading branch information
bajtos committed Apr 9, 2020
1 parent 23c03c9 commit e5ae08a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/cli/lib/ast-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ exports.getDataSourceConfig = function (fileContent) {
ast,
// It must be a top-level declaration, not inside a function
'SourceFile>VariableStatement>VariableDeclarationList>' +
// The declaration should be for property called `config`
// The declaration should be for a variable called exactly `config`
'VariableDeclaration:has([name="config"])',
);
if (!configVarDecl || configVarDecl.length < 1) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ describe('lb4 repository', function () {
});

describe('legacy JSON-based configuration', () => {
it('loads config from `{name}.datasource.config.json', async () => {
it('loads config from `{name}.datasource.config.json`', async () => {
const additionalFiles = [
...SANDBOX_FILES,
{
Expand Down

0 comments on commit e5ae08a

Please sign in to comment.