Skip to content
This repository has been archived by the owner on May 19, 2023. It is now read-only.

Commit

Permalink
fix: deprecated directive test
Browse files Browse the repository at this point in the history
  • Loading branch information
aidenybai committed Mar 2, 2021
1 parent b9f4dd7 commit 002b77a
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/__test__/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,4 @@ describe('.index', () => {
// @ts-ignore
window.console = window.originalConsole;
});

it('should run l-init directive when component is mounted', () => {
const root = document.createElement('div');
const el = document.createElement('div');

el.setAttribute('l-state', `{ foo: 'bar' }`);
el.setAttribute('l-init', 'window.callback()');
root.appendChild(el);
init(root);

// @ts-ignore
expect(callback).toBeCalled();
});
});

0 comments on commit 002b77a

Please # to comment.