Comments (13)
Mine
from belter.
All yours, @kriscarilloxyz !
from belter.
@Cijin Absolutely! Thanks, @Cijin !
from belter.
Hi @kriscarilloxyz! Still want to take this? Just checking in, so that we can give others a chance if you're busy. Thanks!
from belter.
@mstuart Sorry, if anyone wanna step in feel free to do so, I'll be back on Monday if it's still open. Happy hacktoberfest everyone 🥳
from belter.
@pushpinder107 took this up w/ #12 ! Thanks @pushpinder107 !
from belter.
Will keep this issue open in case anyone wants to add other unit tests!
from belter.
Hi, @mstuart. Can I write tests for src/dom.js
to bring coverage upto 100%. If it hasn't been taken up already.
from belter.
Hi @mstuart, i made a PR #24 to bring src/css.js
test coverage to 100%.
from belter.
Thanks @SlyBouhafs ! :D
from belter.
There are a LOT of useful utilities in belter, however there aren't any unit tests in this repo! 😬 If anyone's interested in picking this up, can you write unit tests for at least two files in src/?
@mstuart are these unit tests
? Since they run end to end on Karma browser, they seem more like functional tests right?
from belter.
I think they’re unit tests in the sense that they test individual functions in isolation — given that’s what belter exports.
But they’re not classical unit tests in two senses:
a) some of these utility functions do a decent amount of orchestration and composition. So we’re testing multiple things at once rather than a small “unit” of logic. This is more true in other repos than belter though.
b) In these repos we try to only ever test the public interface, never the implementation (as much as possible). Typical unit tests often run against functions that are not part of the public interface, and also focus too much on implementation specifics. But I think that can lead to seriously brittle tests
from belter.
Looks like sufficient unit tests were added last year, so marking this as closed.
from belter.
Related Issues (11)
- Create a CHANGELOG.md file
- Issue running the tests
- Updating versions in package.json file
- Structure of tests are confusing HOT 1
- chai, sinon, and sinon-chai should be included in dependencies HOT 1
- [Bug] Conflicting line of code in src/dom.js causing infinte loop. (waitForDocumentBody) HOT 2
- Linting checks are failing HOT 1
- consider not rounding dimensions in onResize method
- isSafari allows Chromium browser Yandex through
- Create TypeScript typings HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from belter.