1
0
Fork 0

chore(core): Change init to be private (__init)

This commit is contained in:
Joost De Cock 2022-09-20 15:24:10 +02:00
parent 4a29e25d50
commit 22680fbddc
5 changed files with 73 additions and 73 deletions

View file

@ -77,7 +77,7 @@ describe('Pattern', () => {
const pattern = new Pattern({
only: ['test.partB'],
})
pattern.init()
pattern.__init()
expect(pattern.__needs('test.partA')).to.equal(true)
expect(pattern.__needs('test.partB')).to.equal(true)
expect(pattern.__needs('test.partC')).to.equal(false)
@ -126,7 +126,7 @@ describe('Pattern', () => {
const pattern = new Pattern({
only: ['test.partB'],
})
pattern.init()
pattern.__init()
expect(pattern.__wants('test.partA')).to.equal(false)
expect(pattern.__wants('test.partB')).to.equal(true)
expect(pattern.__wants('test.partC')).to.equal(false)