Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

[PrettyPrint] add unit tests for toggle pretty print#3545

Merged
jasonLaster merged 1 commit into
firefox-devtools:masterfrom
codehag:chore/3531-prettyprint-add-unit-tests-for-toggle-pretty-print
Aug 3, 2017
Merged

[PrettyPrint] add unit tests for toggle pretty print#3545
jasonLaster merged 1 commit into
firefox-devtools:masterfrom
codehag:chore/3531-prettyprint-add-unit-tests-for-toggle-pretty-print

Conversation

@codehag
Copy link
Copy Markdown
Contributor

@codehag codehag commented Aug 3, 2017

Associated Issue: #3531

Added tests

await dispatch(actions.togglePrettyPrint(source.id));
expect(getSources(getState()).size).toEqual(2);
await dispatch(actions.togglePrettyPrint(source.id));
expect(getSources(getState()).size).toEqual(2);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets have a more specific assertion like the new source URL or a snapshot

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, we don't really have a good API for getting the mapped sources... nevermind

Comment thread src/actions/sources.js
);

dispatch(remapBreakpoints(sourceId));
await dispatch(remapBreakpoints(sourceId));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@codecov
Copy link
Copy Markdown

codecov Bot commented Aug 3, 2017

Codecov Report

Merging #3545 into master will increase coverage by 1.21%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3545      +/-   ##
==========================================
+ Coverage   51.86%   53.07%   +1.21%     
==========================================
  Files         119      112       -7     
  Lines        4647     4563      -84     
  Branches      954      942      -12     
==========================================
+ Hits         2410     2422      +12     
+ Misses       2237     2141      -96
Impacted Files Coverage Δ
src/actions/sources.js 79.69% <100%> (+11.51%) ⬆️
src/utils/sources-tree/getURL.js
src/utils/sources-tree/getDirectories.js
src/utils/sources-tree/utils.js
src/utils/sources-tree/createTree.js
src/utils/sources-tree/collapseTree.js
src/utils/sources-tree/formatTree.js
src/components/SecondaryPanes/Expressions.js
src/utils/sources-tree/addToTree.js
src/utils/sources-tree.js 92.63% <0%> (ø)
... and 7 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update daebcfd...bb62db3. Read the comment docs.

@jasonLaster jasonLaster merged commit e7a6dc7 into firefox-devtools:master Aug 3, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants