Code Monkey home page Code Monkey logo

Comments (6)

mde avatar mde commented on August 18, 2024

Let me know if you need me to push a version to NPM.

from timezone-js.

longlho avatar longlho commented on August 18, 2024

Yup I think everything's clear. The failing unit test was a coincidence since the test use my local timezone :) Thanks for the catch. I think using a CI will avoid this kind of situation.

Feel free to push 0.4.2 to npm. :)

from timezone-js.

mde avatar mde commented on August 18, 2024

Actually 0.4.3, pushed. :) Ah, it's a dot-file. I didn't notice the leading dot, so I wasn't seeing the file. Nice work getting it hooked up to CI.

And yes, I can remember tripping over the coincidental local-timezone-match problem before. Would be awesome if we could somehow add an explicit test for that scenario.

from timezone-js.

longlho avatar longlho commented on August 18, 2024

For the Travis CI support actually only the admin can do it so you probably will have go to travis-ci.org and flip the switch.

For the timezone match issue I can probably specify each test to run through a list of certain timezones over the world. What do you think?

from timezone-js.

mde avatar mde commented on August 18, 2024

Had to make some tweaks so CI would run. Looks like we're green!

The accidental-match problem happens when the OS timezone happens to match the expected result in the test, right? Maybe a conditional assert that checks for either a match if the offset happens to be the same, or a thrown error if it's not?

from timezone-js.

longlho avatar longlho commented on August 18, 2024

Hmm that and also the case when developers make test cases that use the OS timezones. It my bad on my part that I used America/New_York for the failing test and didn't realize until I switched to America/Los_Angeles or Asia/Bangkok. Prob I should note down to explicitly test some timezones other than my local one?

from timezone-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.