Skip to content

Commit

Permalink
feat: add failing test for ens
Browse files Browse the repository at this point in the history
  • Loading branch information
ponyjackal committed Dec 4, 2023
1 parent 6204fef commit 3926c0c
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
10 changes: 10 additions & 0 deletions src/protocol/ens/registrar.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { Transaction } from '../../types';
import { detectENS } from './registrar';
import catchall0xc35c01ac from '../../test/transactions/catchall-0xc35c01ac.json';

describe('ENS Registrar', () => {
it('Should not detect as ens registrar', () => {
const ensRegistrar1 = detectENS(catchall0xc35c01ac as Transaction);
expect(ensRegistrar1).toBe(false);
});
});
10 changes: 10 additions & 0 deletions src/protocol/ens/reverse.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { Transaction } from '../../types';
import { detectReverseENS } from './reverse';
import catchall0xc35c01ac from '../../test/transactions/catchall-0xc35c01ac.json';

describe('ENS Reverse', () => {
it('Should not detect as ens reverse', () => {
const ensReverse1 = detectReverseENS(catchall0xc35c01ac as Transaction);
expect(ensReverse1).toBe(false);
});
});
2 changes: 1 addition & 1 deletion src/protocol/weth.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Transaction } from '../types';
import { detectWeth } from './weth';
import catchall0xc35c01ac from '../test/transactions/catchall-0xc35c01ac.json';

describe('Weth Faucet', () => {
describe('Weth', () => {
it('Should not detect as weth', () => {
const weth1 = detectWeth(catchall0xc35c01ac as Transaction);
expect(weth1).toBe(false);
Expand Down

0 comments on commit 3926c0c

Please sign in to comment.