mirror of
https://github.com/withastro/astro.git
synced 2025-02-17 22:44:24 -05:00
[ci] format
This commit is contained in:
parent
f7aa1ec25d
commit
eebcf82ef2
2 changed files with 16 additions and 6 deletions
|
@ -87,18 +87,28 @@ describe('LitElement test', function () {
|
||||||
|
|
||||||
// Slotted my-element first level
|
// Slotted my-element first level
|
||||||
expect($slottedMyElement.children('.default').length).to.equal(1);
|
expect($slottedMyElement.children('.default').length).to.equal(1);
|
||||||
expect($slottedMyElement.children('.default').eq(0).text()).to.equal('slotted my-element default');
|
expect($slottedMyElement.children('.default').eq(0).text()).to.equal(
|
||||||
|
'slotted my-element default'
|
||||||
|
);
|
||||||
|
|
||||||
expect($slottedMyElement.children('[slot="named"]').length).to.equal(3);
|
expect($slottedMyElement.children('[slot="named"]').length).to.equal(3);
|
||||||
expect($slottedMyElement.children('[slot="named"]').eq(1).text()).to.equal('slotted my-element named 2');
|
expect($slottedMyElement.children('[slot="named"]').eq(1).text()).to.equal(
|
||||||
expect($slottedMyElement.children('[slot="named"]').eq(2).attr('id')).to.equal('slotted-slotted');
|
'slotted my-element named 2'
|
||||||
|
);
|
||||||
|
expect($slottedMyElement.children('[slot="named"]').eq(2).attr('id')).to.equal(
|
||||||
|
'slotted-slotted'
|
||||||
|
);
|
||||||
|
|
||||||
// Slotted my-element second level
|
// Slotted my-element second level
|
||||||
expect($slottedSlottedMyElement.children('.default').length).to.equal(2);
|
expect($slottedSlottedMyElement.children('.default').length).to.equal(2);
|
||||||
expect($slottedSlottedMyElement.children('.default').eq(1).text()).to.equal('slotted slotted my-element default 2');
|
expect($slottedSlottedMyElement.children('.default').eq(1).text()).to.equal(
|
||||||
|
'slotted slotted my-element default 2'
|
||||||
|
);
|
||||||
|
|
||||||
expect($slottedSlottedMyElement.children('[slot="named"]').length).to.equal(2);
|
expect($slottedSlottedMyElement.children('[slot="named"]').length).to.equal(2);
|
||||||
expect($slottedSlottedMyElement.children('[slot="named"]').eq(1).text()).to.equal('slotted slotted my-element named 2');
|
expect($slottedSlottedMyElement.children('[slot="named"]').eq(1).text()).to.equal(
|
||||||
|
'slotted slotted my-element named 2'
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Is able to build when behind getStaticPaths', async () => {
|
it('Is able to build when behind getStaticPaths', async () => {
|
||||||
|
|
Loading…
Add table
Reference in a new issue