Commit 32709c9d authored by Dan Allen's avatar Dan Allen
Browse files

strengthen assertion for enabling extension with duplicate ID

parent e5e45566
Loading
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -601,7 +601,9 @@ describe('buildPlaybook()', () => {
    const playbook = buildPlaybook(args, {})
    expect(playbook.antora.extensions).to.have.lengthOf(2)
    expect(playbook.antora.extensions[0].enabled).to.be.true()
    expect(playbook.antora.extensions[0].foo).to.equal('bar')
    expect(playbook.antora.extensions[1].enabled).to.be.false()
    expect(playbook.antora.extensions[1].foo).to.equal('baz')
  })

  it('should not add duplicate entry to require-array', () => {