Skip to content

Commit

Permalink
chore: Remove unnecessary TS ignore comment
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmilton committed Oct 2, 2023
1 parent 8cbf23b commit 49638e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
4 changes: 1 addition & 3 deletions test/unit/macro.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,7 @@ describe('compile', () => {
});

test('logs error when more than one root element', () => {
const spy = spyOn(console, 'error')
// @ts-expect-error - noop stub
.mockImplementation(() => {});
const spy = spyOn(console, 'error').mockImplementation(() => {});
compileNoMacro('<div></div><div></div>');
// TODO: Check for specific error message once bun:test supports it.
// expect(spy).toHaveBeenCalledWith('Expected template to have a single root element');
Expand Down
8 changes: 2 additions & 6 deletions test/unit/test-utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,7 @@ describe('render', () => {
});

test('debug function prints to console', async () => {
const logSpy = spyOn(console, 'log')
// @ts-expect-error - noop mock
.mockImplementation(() => {});
const logSpy = spyOn(console, 'log').mockImplementation(() => {});
const rendered = render(document.createElement('div'));
await rendered.debug();
expect(logSpy).toHaveBeenCalledTimes(1);
Expand All @@ -70,9 +68,7 @@ describe('render', () => {
});

test('debug function prints prettified container DOM to console', async () => {
const logSpy = spyOn(console, 'log')
// @ts-expect-error - noop mock
.mockImplementation(() => {});
const logSpy = spyOn(console, 'log').mockImplementation(() => {});
const main = document.createElement('main');
main.append(
document.createElement('div'),
Expand Down

0 comments on commit 49638e1

Please sign in to comment.