Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
rmccar committed Nov 21, 2023
1 parent febdca6 commit c584ad9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/details/details.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,9 @@ describe('script: details', () => {
const openAttribute2 = await page.$eval('#details-id-2', (node) => node.open !== null);
const detailsOpenClass2 = await page.$eval('#details-id-2', (node) => node.classList.contains('ons-details--open'));

console.log(openAttribute2);
expect(openAttribute2).toBe(false);
expect(detailsOpenClass2).toBe(true);
expect(detailsOpenClass2).toBe(false);
});
});

Expand Down
7 changes: 7 additions & 0 deletions src/components/details/example-details.njk
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,10 @@
"content": "<p>A typical photovoltaic system employs solar panels, each comprising a number of solar cells, which generate electrical power. PV installations may be ground-mounted, rooftop mounted or wall mounted. The mount may be fixed, or use a solar tracker to follow the sun across the sky.</p>"
})
}}
{{
onsDetails({
"id": "details-example2",
"title": "What is a photovoltaic system?",
"content": "<p>A typical photovoltaic system employs solar panels, each comprising a number of solar cells, which generate electrical power. PV installations may be ground-mounted, rooftop mounted or wall mounted. The mount may be fixed, or use a solar tracker to follow the sun across the sky.</p>"
})
}}

0 comments on commit c584ad9

Please sign in to comment.