diff --git a/packages/address-book-controller/CHANGELOG.md b/packages/address-book-controller/CHANGELOG.md index b99402a965..9ab92bd93a 100644 --- a/packages/address-book-controller/CHANGELOG.md +++ b/packages/address-book-controller/CHANGELOG.md @@ -4,8 +4,6 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [Unreleased] - ## [1.0.1] ### Changed - Relax dependencies on `@metamask/base-controller` and `@metamask/controller-utils` (use `^` instead of `~`) ([#998](https://github.com/MetaMask/controllers/pull/998)) diff --git a/packages/address-book-controller/src/AddressBookController.test.ts b/packages/address-book-controller/src/AddressBookController.test.ts index 44944efa6c..d180aa882f 100644 --- a/packages/address-book-controller/src/AddressBookController.test.ts +++ b/packages/address-book-controller/src/AddressBookController.test.ts @@ -3,7 +3,7 @@ import { AddressBookController } from './AddressBookController'; describe('AddressBookController', () => { it('should set default state', () => { const controller = new AddressBookController(); - expect(controller.state).toStrictEqual({ addressBook: {} }); + expect(controller.state).toBe('oops'); }); it('should add a contact entry', () => { @@ -203,12 +203,12 @@ describe('AddressBookController', () => { const controller = new AddressBookController(); expect( controller.set('0x32Be343B94f860124dC4fEe278FDCBD38C102D88', 'foo'), - ).toStrictEqual(true); + ).toBe(true); }); it('should return false to indicate an address book entry has NOT been added', () => { const controller = new AddressBookController(); - expect(controller.set('0x00', 'foo')).toStrictEqual(false); + expect(controller.set('0x00', 'foo')).toBe(false); }); it('should return true to indicate an address book entry has been deleted', () => { @@ -216,13 +216,13 @@ describe('AddressBookController', () => { controller.set('0x32Be343B94f860124dC4fEe278FDCBD38C102D88', 'foo'); expect( controller.delete('1', '0x32Be343B94f860124dC4fEe278FDCBD38C102D88'), - ).toStrictEqual(true); + ).toBe(true); }); it('should return false to indicate an address book entry has NOT been deleted', () => { const controller = new AddressBookController(); controller.set('0x32Be343B94f860124dC4fEe278FDCBD38C102D88', '0x00'); - expect(controller.delete('1', '0x01')).toStrictEqual(false); + expect(controller.delete('1', '0x01')).toBe(false); }); it('should normalize addresses so adding and removing entries work across casings', () => {