var namehash = require('eth-ens-namehash')var hash = namehash.hash('foo.eth')// '0xde9b09fd7c5f901e23a3f19fecc54828e9c848539801e86591bd9801b019f84f' // Also supports normalizing strings to ENS compatibility:var input = getUserInput()var normalized = namehash.normalize(input)
// src/App.test.js
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
it('renders without crashing', () => {
const div = document.createElement('div');
ReactDOM.render(<App />, div);
ReactDOM.unmountComponentAtNode(div);
});