feat(core): better log message formatting
This commit is contained in:
parent
8badef08f8
commit
88f74a4e5e
2 changed files with 5 additions and 5 deletions
|
@ -77,14 +77,14 @@ describe('Store', () => {
|
|||
it('Should log a warning when trying to extend a protected method via the constructor', () => {
|
||||
const store = new Store([['get', () => false]])
|
||||
expect(store.logs.warning.length).to.equal(1)
|
||||
expect(store.logs.warning[0]).to.equal('You cannot overwrite store.get()')
|
||||
expect(store.logs.warning[0]).to.equal('You cannot overwrite `store.get()`')
|
||||
})
|
||||
|
||||
it('Should log a warning when trying to extend a protected method via the extend', () => {
|
||||
const store = new Store()
|
||||
store.extend([['get', () => false]])
|
||||
expect(store.logs.warning.length).to.equal(1)
|
||||
expect(store.logs.warning[0]).to.equal('You cannot overwrite store.get()')
|
||||
expect(store.logs.warning[0]).to.equal('You cannot overwrite `store.get()`')
|
||||
})
|
||||
|
||||
it('Should extend the store with a new method via the constructor', () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue