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

Migrating bv-ui-pixels-displayed to module in the core #28

Closed
wants to merge 1 commit into from

Conversation

msmolev
Copy link
Contributor

@msmolev msmolev commented Sep 10, 2015

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.


## Module arguments

- `window`: Reference to window.
Copy link
Contributor

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.

@msmolev
Copy link
Contributor Author

msmolev commented Sep 10, 2015

Updated structure to pull out the accessor for the testing purposes


function stubAccessor () {
sinonSandbox = sinon.sandbox.create();
spy = sinonSandbox.spy();
Copy link
Contributor

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.

}
```

## License
Copy link
Contributor

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.

@reason-bv
Copy link
Contributor

👍 Aside from items noted.

@msmolev
Copy link
Contributor Author

msmolev commented Sep 11, 2015

Corrected the license notice

@reason-bv reason-bv closed this in c1ccc7c Sep 11, 2015
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.

2 participants