Skip to content

Commit

Permalink
#38: test exec context does not reset after execution of prev class
Browse files Browse the repository at this point in the history
  • Loading branch information
phjulia committed Jul 14, 2023
1 parent afd8ca6 commit 156d0ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1080,7 +1080,7 @@ class Mcdev {
const dependentTypes = await this.#getDependentMetadata(type);
// TODO retrieve and update other types that are dependent on this type.
Util.logger.warn(
`Keys for type '${type}' were updated. Retrieve '${dependentTypes.join(
`Keys for type '${type}' were updated. Retrieve types'${dependentTypes.join(
','
)}' again to have up-to-date data in your retrieve folder`
);
Expand Down
4 changes: 4 additions & 0 deletions test/type.query.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const file = chaiFiles.file;
const cache = require('../lib/util/cache');
const testUtils = require('./utils');
const handler = require('../lib/index');
const config = require('./../lib/util/config');

describe('type: query', () => {
beforeEach(() => {
Expand Down Expand Up @@ -247,6 +248,8 @@ describe('type: query', () => {
return;
});
it('Should fixKeys and deploy', async () => {
const properties = await config.getProperties();
const deployDir = properties.directories.deploy;
// WHEN
const resultFixKeys = await handler.fixKeys('testInstance/testBU', 'query', [
'testExisting_query_fixKeys',
Expand Down Expand Up @@ -279,6 +282,7 @@ describe('type: query', () => {
16,
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
);
properties.directories.deploy = deployDir;
return;
});
});
Expand Down

0 comments on commit 156d0ec

Please sign in to comment.