-
Notifications
You must be signed in to change notification settings - Fork 55
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
Basic test environment setup #23
Conversation
js/store.js
Outdated
@@ -3,6 +3,10 @@ const store = { | |||
this.addListeners(); | |||
}, | |||
|
|||
getEmptyObject() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added for testing purpose. once I have sinon-chrome setup working, this function will be removed.
js/store.js
Outdated
@@ -59,6 +63,7 @@ const store = { | |||
} | |||
}; | |||
|
|||
/* | |||
store.getAll() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The goal of this PR is to move this code into the test directory
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we ready to merge this yet?
@@ -1 +1,2 @@ | |||
node_modules | |||
node_modules | |||
npm-debug.log |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
js/store.js
Outdated
@@ -59,6 +63,7 @@ const store = { | |||
} | |||
}; | |||
|
|||
/* | |||
store.getAll() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
package.json
Outdated
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/pauljt/lightbeam-we.git" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bye bye @pauljt you will be missed!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
haha... yeah ;)
I am yet to add sinon-chrome part. maybe I do that in another PR? if so, this can be merged |
Nice start on the testing harness! |
@groovecoder there is an |
@princiya Lots of ESLint errors in Travis to fix: Could you look into those? |
Yes, will do. Back to DO NOT MERGE :) |
// When the user clicks browserAction icon in toolbar, run Lightbeam | ||
browser.browserAction.onClicked.addListener(runLightbeam); | ||
|
||
capture.init(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@biancadanforth are you able to invoke capture.init()
from here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@princiya Yep. I've tested it in the browser.
get
methods fromjs/store.js
are now testable.To test this PR:
npm install
npm run test
Screenshot