Skip to content

Commit

Permalink
fix: Add test for isExternalName
Browse files Browse the repository at this point in the history
  • Loading branch information
fzavalia committed Sep 27, 2023
1 parent e608465 commit becd3a1
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/modules/ens/utils.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { isExternalName } from './utils'

describe('when checking if a subdomain is an external subdomain', () => {
describe('when providing a dcl subdomain', () => {
it('should return false', () => {
expect(isExternalName('name.dcl.eth')).toBe(false)
})
})

describe('when providing a non dcl subdomain', () => {
it('should return true', () => {
expect(isExternalName('name.eth')).toBe(true)
})
})
})

0 comments on commit becd3a1

Please sign in to comment.