Add cmp.config.disable for opt-out default setting

This commit is contained in:
hrsh7th
2021-10-25 22:50:38 +09:00
parent 5f5e8442f1
commit f1da3adddc
4 changed files with 19 additions and 0 deletions

View File

@@ -15,6 +15,7 @@ describe('misc', function()
},
})
assert.are.equal(merged.a.b, 1)
merged = misc.merge({
a = false,
}, {
@@ -23,5 +24,14 @@ describe('misc', function()
},
})
assert.are.equal(merged.a, false)
merged = misc.merge({
a = misc.none,
}, {
a = {
b = 1,
},
})
assert.are.equal(merged.a, nil)
end)
end)