ember-timemachine

0.0.3 • Public • Published

Ember-timemachine

Ready to hunt down those pesky date / time specific bugs?

This is an ember addon that wraps https://github.com/schickling/timemachine in a way that doesn't make your app party like it's 1969.

How to party like it's 1969

Install ember-timemachine:

ember install ember-timemachine

Use it:

import timemachine from 'timemachine';

timemachine.config({
  dateString: 'December 25, 1969 13:12:59'
});

console.log(new Date());

and stop partying when you want with:

timemachine.reset();

Are you testing?

Me too! So, this stops the default timer from ticking... which means Backburner can get frozen in time. So, you need to set 'tick: true;' when you configure.

I'll probably add in some helpers or better docs to discuss this in the future.

Installation

  • git clone this repository
  • npm install
  • bower install

Running

Running Tests

  • npm test (Runs ember try:testall to test your addon against multiple Ember versions)
  • ember test
  • ember test --server

Building

  • ember build

For more information on using ember-cli, visit http://ember-cli.com/.

Readme

Keywords

Package Sidebar

Install

npm i ember-timemachine

Weekly Downloads

1

Version

0.0.3

License

MIT

Last publish

Collaborators

  • ryanlabouve