Skip to content

Commit 9c11d55

Browse files
committed
fix: add fix tests
Signed-off-by: Muhammad Aaqil <aaqilniz@yahoo.com>
1 parent 7bb46ef commit 9c11d55

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

packages/cli/test/integration/generators/relation.belongs-to.integration.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,10 @@ describe('lb4 relation', /** @this {Mocha.Suite} */ function () {
496496
assert.file(sourceFilePath);
497497
expectFileToMatchSnapshot(sourceFilePath);
498498
});
499+
},
500+
);
501+
502+
context(
499503
'checks if the controller file created for multiple relations',
500504
() => {
501505
const promptArray = [
@@ -512,13 +516,11 @@ describe('lb4 relation', /** @this {Mocha.Suite} */ function () {
512516
relationName: 'assignedTo',
513517
},
514518
];
515-
516519
promptArray.forEach(function (multiItemPrompt) {
517520
describe('answers ' + JSON.stringify(multiItemPrompt), () => {
518521
suite(multiItemPrompt);
519522
});
520523
});
521-
522524
function suite(multiItemPrompt) {
523525
before(async function runGeneratorWithAnswers() {
524526
await sandbox.reset();
@@ -532,7 +534,6 @@ describe('lb4 relation', /** @this {Mocha.Suite} */ function () {
532534
.withOptions(options)
533535
.withPrompts(multiItemPrompt);
534536
});
535-
536537
it('checks controller content with belongsTo relation for multiple relations', async () => {
537538
const filePath = path.join(
538539
sandbox.path,

0 commit comments

Comments
 (0)