mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-27 21:00:13 +01:00
4f3fc95d50
* Use @metamask/eslint-config@1.1.0 * Use eslint-plugin-mocha@6.2.2 * Mark root ESLint config as root * Update Mocha ESLint rules with shared ESLint config
25 lines
585 B
JavaScript
25 lines
585 B
JavaScript
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',
|
|
},
|
|
],
|
|
)
|
|
})
|
|
})
|
|
|
|
})
|