Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test for import image #1513

Merged
merged 5 commits into from
Jan 16, 2020
Merged

Conversation

rishabhshuklax
Copy link
Member

@rishabhshuklax rishabhshuklax commented Jan 16, 2020

Fixes #1377

Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!

  • tests pass -- look for a green checkbox ✔️ a few minutes after opening your PR -- or run tests locally with npm test
  • code is in uniquely-named feature branch and has no merge conflicts
  • PR is descriptively titled
  • ask @publiclab/is-reviewers for help, in a comment below
  • Insert-step functionality is working correct as expected.

We're happy to help you get this ready -- don't be afraid to ask for help, and don't be discouraged if your tests fail at first!

If tests do fail, click on the red X to learn why by reading the logs.

Please be sure you've reviewed our contribution guidelines at https://publiclab.org/contributing-to-public-lab-software
Please make sure to get at least two reviews before asking for merging the PR as that would make the PR more reliable on our part
Thanks!

@rishabhshuklax
Copy link
Member Author

@publiclab/is-reviewers please review this

const path = require('path');

const url = path.join(__dirname, '../images/red.png');
console.log(url);
Copy link
Member

@debck debck Jan 16, 2020

Choose a reason for hiding this comment

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

Can you remove this console.log and also fix the indentation.
Rest looks good to me

Copy link
Member Author

Choose a reason for hiding this comment

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

I forgot to remove the log 😅 , I'll do that ASAP!

const path = require('path');

const url = path.join(__dirname, '../images/red.png');
console.log(url);
Copy link
Member

Choose a reason for hiding this comment

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

Please remove the log.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ohh sorry I forgot, I'll do that ASAP!

Copy link
Member

@harshkhandeparkar harshkhandeparkar left a comment

Choose a reason for hiding this comment

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

Please remove the console log.

Copy link
Member

@harshkhandeparkar harshkhandeparkar left a comment

Choose a reason for hiding this comment

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

please remove the log.

Copy link
Member

@harshkhandeparkar harshkhandeparkar left a comment

Choose a reason for hiding this comment

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

Also, what has changed in the red.png file?

@rishabhshuklax
Copy link
Member Author

Also, what has changed in the red.png file?

Nothing, i just saved it in the test directory to easily import the image, should I remove that and instead import from example?

@codecov
Copy link

codecov bot commented Jan 16, 2020

Codecov Report

Merging #1513 into main will decrease coverage by 0.2%.
The diff coverage is 80%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1513      +/-   ##
==========================================
- Coverage   65.47%   65.26%   -0.21%     
==========================================
  Files         127      126       -1     
  Lines        2598     2594       -4     
  Branches      418      416       -2     
==========================================
- Hits         1701     1693       -8     
- Misses        897      901       +4
Impacted Files Coverage Δ
examples/lib/insertPreview.js 13.51% <ø> (ø) ⬆️
examples/lib/defaultHtmlStepUi.js 10.98% <0%> (-0.25%) ⬇️
src/modules/Contrast/Module.js 100% <100%> (ø) ⬆️

@rishabhshuklax
Copy link
Member Author

@harshkhandeparkar @debck I've made the requested changes, please re-review this!

@harshkhandeparkar
Copy link
Member

harshkhandeparkar commented Jan 16, 2020 via email

@jywarren
Copy link
Member

Awesome!!!!

@jywarren jywarren merged commit b0ddea0 into publiclab:main Jan 16, 2020
@jywarren
Copy link
Member

This is super. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Test for Import Image Module
4 participants