Skip to content

Commit

Permalink
Merge branch 'main' into fix/2871/spinning-up-the-ds-locally-on-port-…
Browse files Browse the repository at this point in the history
…3000-hangs
  • Loading branch information
rmccar authored Nov 16, 2023
2 parents 9640702 + 8ce2802 commit c87f4b3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 183 deletions.
22 changes: 0 additions & 22 deletions src/components/collapsible/_macro.njk

This file was deleted.

151 changes: 0 additions & 151 deletions src/components/collapsible/_macro.spec.js

This file was deleted.

13 changes: 3 additions & 10 deletions src/components/details/_macro.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,7 @@ describe('macro: details', () => {
it('has provided title text', () => {
const $ = cheerio.load(renderComponent('details', EXAMPLE_DETAILS_BASIC));

const titleText = $('.ons-details__title')
.first()
.text()
.trim();
const titleText = $('.ons-details__title').first().text().trim();
expect(titleText).toBe('Title for details');
});

Expand All @@ -62,9 +59,7 @@ describe('macro: details', () => {
it('has provided content text', () => {
const $ = cheerio.load(renderComponent('details', EXAMPLE_DETAILS_BASIC));

const titleText = $('.ons-details__content')
.text()
.trim();
const titleText = $('.ons-details__content').text().trim();
expect(titleText).toEqual(expect.stringContaining('Content for details'));
});

Expand Down Expand Up @@ -143,9 +138,7 @@ describe('macro: details', () => {
it('calls with content', () => {
const $ = cheerio.load(renderComponent('details', { EXAMPLE_DETAILS_BASIC }, 'Example content...'));

const content = $('.ons-details__content')
.text()
.trim();
const content = $('.ons-details__content').text().trim();
expect(content).toEqual(expect.stringContaining('Example content...'));
});
});

0 comments on commit c87f4b3

Please sign in to comment.