katoikia-app/web-ui/web-react/node_modules/dns-equal/test.js

12 lines
351 B
JavaScript
Raw Normal View History

2022-07-06 04:15:11 +00:00
'use strict'
var assert = require('assert')
var dnsEqual = require('./')
assert.strictEqual(dnsEqual('Foo', 'foo'), true)
assert.strictEqual(dnsEqual('FooÆØÅ', 'fooÆØÅ'), true)
assert.strictEqual(dnsEqual('foo', 'bar'), false)
assert.strictEqual(dnsEqual('FooÆØÅ', 'fooæøå'), false)
assert.strictEqual(dnsEqual('café', 'cafe'), false)