1
0
Fork 0

chore(core): Refactor v3 code

This commit is contained in:
Joost De Cock 2022-09-18 15:11:10 +02:00
parent f882a26408
commit 200cebf582
27 changed files with 3961 additions and 2633 deletions

View file

@ -78,9 +78,9 @@ describe('Pattern', () => {
only: ['test.partB'],
})
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)
expect(pattern.__needs('test.partA')).to.equal(true)
expect(pattern.__needs('test.partB')).to.equal(true)
expect(pattern.__needs('test.partC')).to.equal(false)
})
it('Should check whether a part is wanted', () => {
@ -127,9 +127,9 @@ describe('Pattern', () => {
only: ['test.partB'],
})
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)
expect(pattern.__wants('test.partA')).to.equal(false)
expect(pattern.__wants('test.partB')).to.equal(true)
expect(pattern.__wants('test.partC')).to.equal(false)
})
/*