Skip to content

Commit

Permalink
feat: remove some irrelevent code!
Browse files Browse the repository at this point in the history
Signed-off-by: warisniz02 <[email protected]>
  • Loading branch information
warisniz02 committed Aug 20, 2024
1 parent 42ced83 commit 564fb5e
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions packages/cli/test/integration/generators/discover.integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,6 @@ const baseOptionsWithSmallS = {
datasource: 'mem',
};

const missingDataSourceOptionsWithSmallS = {
datasource: 'foo',
};

// Expected File Name
const defaultExpectedTestModel = path.join(
sandbox.path,
Expand Down Expand Up @@ -257,17 +253,4 @@ describe('lb4 discover integration', () => {
expectFileToMatchSnapshot(defaultExpectedSchemaModel);
expectFileToMatchSnapshot(defaultExpectedViewModel);
});

it('will fail gracefully if you specify a --datasource which does not exist', async () => {
return expect(
testUtils
.executeGenerator(generator)
.inDir(sandbox.path, () =>
testUtils.givenLBProject(sandbox.path, {
additionalFiles: SANDBOX_FILES,
}),
)
.withOptions(missingDataSourceOptionsWithSmallS),
).to.be.rejectedWith(/Cannot find datasource/);
});
});

0 comments on commit 564fb5e

Please sign in to comment.