Skip to content

Commit

Permalink
added missing suite annotation for rooibos
Browse files Browse the repository at this point in the history
fix test
  • Loading branch information
daci committed Nov 12, 2024
1 parent b0284e2 commit aceeaf6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/lib/utils/Utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ export let defaultAnnotations = new Set<string>([
'None',
'TestSuite',
'Describe',
'Suite',
'It',
'Ignore',
'Solo',
Expand Down
7 changes: 4 additions & 3 deletions src/plugin.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4681,6 +4681,7 @@ end function`;
'none',
'testsuite',
'describe',
'suite',
'it',
'ignore',
'solo',
Expand Down Expand Up @@ -4792,7 +4793,7 @@ end function`;
checkDiagnostic(diagnostics[1], 1065, 4);
});

it('fails validations if notification name is not present', async() => {
it('fails validations if notification name is not present', async () => {
plugin.afterProgramCreate(program);
plugin.maestroConfig.allowNotificationAnnotations = true;
program.setFile('source/comp.bs', `
Expand All @@ -4812,7 +4813,7 @@ end function`;
expect(d[0].code).to.equal('MSTO1066');
});

it('fails validations if notification annotation is not set on a method', async() => {
it('fails validations if notification annotation is not set on a method', async () => {
plugin.maestroConfig.allowNotificationAnnotations = true;
plugin.afterProgramCreate(program);
program.setFile('source/comp.bs', `
Expand All @@ -4832,7 +4833,7 @@ end function`;
expect(d[0].code).to.equal('MSTO1067');
});

it('fails validations if notification annotation is disabled', async() => {
it('fails validations if notification annotation is disabled', async () => {
plugin.maestroConfig.allowNotificationAnnotations = false;
plugin.afterProgramCreate(program);
program.setFile('source/comp.bs', `
Expand Down

0 comments on commit aceeaf6

Please sign in to comment.