Skip to content

Commit

Permalink
test: fix invalid formatting test
Browse files Browse the repository at this point in the history
  • Loading branch information
gas1cent committed Feb 16, 2024
1 parent 343c9f4 commit 5583bea
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions test/parser.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -379,19 +379,10 @@ describe('Parser', () => {
const node = findNode(contract.vFunctions, '_viewBlockLinterFail');
const result = parseNodeNatspec(node);

expect(result).toEqual(
mockNatspec({
tags: [
{
name: 'notice',
content: 'Some text',
},
],
})
);
expect(result).toEqual(mockNatspec({}));
});

it('should parse block natspec with invalid formatting', async () => {
it('should ignore block natspec with invalid formatting', async () => {
const node = findNode(contract.vFunctions, '_viewLinterFail');
const result = parseNodeNatspec(node);

Expand Down

0 comments on commit 5583bea

Please sign in to comment.