ember-timemachine
v0.0.3
Published
The default blueprint for ember-cli addons.
Downloads
4
Readme
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 repositorynpm install
bower install
Running
ember serve
- Visit your app at http://localhost:4200.
Running Tests
npm test
(Runsember 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/.