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

test project search#3639

Merged
jasonLaster merged 1 commit into
firefox-devtools:masterfrom
jasonLaster:test-ps
Aug 14, 2017
Merged

test project search#3639
jasonLaster merged 1 commit into
firefox-devtools:masterfrom
jasonLaster:test-ps

Conversation

@jasonLaster
Copy link
Copy Markdown
Contributor

Summary of Changes

I'm adding a mochitest so that we can have a simple smoke test. Also, importantly i'm using prefs instead of configs to flag project search because we need to be able to flip it in the test.

@codecov
Copy link
Copy Markdown

codecov Bot commented Aug 14, 2017

Codecov Report

Merging #3639 into master will increase coverage by 0.14%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3639      +/-   ##
==========================================
+ Coverage   54.68%   54.83%   +0.14%     
==========================================
  Files         120      120              
  Lines        4820     4811       -9     
  Branches     1002     1001       -1     
==========================================
+ Hits         2636     2638       +2     
+ Misses       2184     2173      -11
Impacted Files Coverage Δ
src/utils/prefs.js 100% <100%> (ø) ⬆️
src/actions/ast.js 78.57% <0%> (+1.78%) ⬆️
src/actions/breakpoints.js 80% <0%> (+8%) ⬆️

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 fbaa6d5...0f06fc8. Read the comment docs.

.map(file => file.matches)
.toJS();

return [].concat(...matches).length;
Copy link
Copy Markdown
Contributor

@codehag codehag Aug 14, 2017

Choose a reason for hiding this comment

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

could we do [...matches].length? or matches.length?

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.

also, since we are doing toJS() at the end here, maybe it makes more sense to do matches.size

Copy link
Copy Markdown
Contributor

@codehag codehag left a comment

Choose a reason for hiding this comment

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

looks good, a couple of comments regarding the immutable -> js stuff

@jasonLaster jasonLaster merged commit 97ad61a into firefox-devtools:master Aug 14, 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