You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
585 B
24 lines
585 B
import assert from 'assert'
|
|
import { getAddressBook } from '../selectors.js'
|
|
import mockState from './selectors-test-data'
|
|
|
|
describe('selectors', function () {
|
|
|
|
describe('getAddressBook()', function () {
|
|
it('should return the address book', function () {
|
|
assert.deepEqual(
|
|
getAddressBook(mockState),
|
|
[
|
|
{
|
|
'address': '0x06195827297c7a80a443b6894d3bdb8824b43896',
|
|
'chainId': '3',
|
|
'isEns': false,
|
|
'memo': '',
|
|
'name': 'Address Book Account 1',
|
|
},
|
|
],
|
|
)
|
|
})
|
|
})
|
|
|
|
})
|
|
|