code from amapei

This commit is contained in:
cagette@ct8
2020-09-26 18:25:18 +00:00
parent 42fe367911
commit 72b4699871
1966 changed files with 220437 additions and 2 deletions
+25
View File
@@ -0,0 +1,25 @@
Packaging [Moment](momentjs.org) for [Meteor.js](http://meteor.com).
# Meteor
If you're new to Meteor, here's what the excitement is all about -
[watch the first two minutes](https://www.youtube.com/watch?v=fsi0aJ9yr2o); you'll be hooked by 1:28.
That screencast is from 2012. In the meantime, Meteor has become a mature JavaScript-everywhere web
development framework. Read more at [Why Meteor](http://www.meteorpedia.com/read/Why_Meteor).
# Issues
If you encounter an issue while using this package, please CC @dandv when you file it in this repo.
# DONE
* Simple test. Should be enough.
# TODO
* Add other tests; however, that is overkill, and the responsibiity of Moment, not of the Meteor integration.
+3
View File
@@ -0,0 +1,3 @@
// moment.js makes `moment` global on the window (or global) object, while Meteor expects a file-scoped global variable
moment = this.moment;
delete this.moment;
+5
View File
@@ -0,0 +1,5 @@
'use strict';
Tinytest.add('Moment.is', function (test) {
test.ok(moment.isMoment(moment()), {message: 'simple moment object'});
});