fix: fix merging options on configure for multiple extension instances
This commit is contained in:
@@ -127,11 +127,13 @@ describe('extension options', () => {
|
||||
.create({
|
||||
defaultOptions: {
|
||||
foo: 1,
|
||||
bar: 2,
|
||||
},
|
||||
})
|
||||
|
||||
const extension1 = extension.configure({
|
||||
foo: 2,
|
||||
bar: 4,
|
||||
})
|
||||
|
||||
const extension2 = extension.configure({
|
||||
@@ -140,10 +142,12 @@ describe('extension options', () => {
|
||||
|
||||
expect(extension1.options).to.deep.eq({
|
||||
foo: 2,
|
||||
bar: 4,
|
||||
})
|
||||
|
||||
expect(extension2.options).to.deep.eq({
|
||||
foo: 3,
|
||||
bar: 2,
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user