-
Notifications
You must be signed in to change notification settings - Fork 39
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
Migrating bv-ui-pixels-displayed to module in the core #28
Conversation
|
||
## Module arguments | ||
|
||
- `window`: Reference to window. |
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.
It won't need either of these, as it can use global
.
67a1196
to
2cfdcdc
Compare
Updated structure to pull out the accessor for the testing purposes |
|
||
function stubAccessor () { | ||
sinonSandbox = sinon.sandbox.create(); | ||
spy = sinonSandbox.spy(); |
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.
What's the intent here; the stub interface includes the spy interface, so anything you want to do with spy can be done with the stub.
2cfdcdc
to
93b8976
Compare
} | ||
``` | ||
|
||
## License |
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 license block can be deleted - the license for the whole package is in the upper directory.
👍 Aside from items noted. |
93b8976
to
7afb527
Compare
Corrected the license notice |
This is an attempt to migrate https://github.com/bazaarvoice/bv-ui-pixels-displayed into the core library.
Original library, however, only checked vertical visibility. So I have also duplicated the function and created horizontal version as well.
Migrated tests, created horizontal tests, added link in Readme.