Skip to content

Instantly share code, notes, and snippets.

View awatson1978's full-sized avatar
🏠
Working from home

Abigail Watson awatson1978

🏠
Working from home
View GitHub Profile
@awatson1978
awatson1978 / gist:b81e3d7969d12b6bd136
Created July 12, 2015 20:15
Remove Package from Atmosphere
````
meteor admin set-unmigrated clinical:foo
````
@awatson1978
awatson1978 / gist:e9fd118781e68c5e851e
Last active November 19, 2019 21:45
Nightwatch Unit Testing for Meteor

Nightwatch Unit Testing Functions for Meteor

Unit Testing Client-Side Javascript from the Client

Meteor has a fairly extensive API, and places various objects on the global scope of the browser's Javascript environment, such as Session, Template, Collection, and of course Meteor. Here is how to test methods on such objects using Nightwatch and the Selenium .execute() API.

exports.command = function(sessionVarName, expectedValue) {
  var client = this;
  this
 .execute(function(data){
@awatson1978
awatson1978 / .travis.yml
Last active July 21, 2023 13:45 — forked from zeroasterisk/.travis.yml
Nightwatch Runner for Travis (and Phantom)
language: node_js
node_js:
- "0.10"
services:
- mongodb
sudo: required
http://swizec.com/blog/how-to-run-javascript-tests-in-chrome-on-travis/swizec/6647
@awatson1978
awatson1978 / gist:cce938ddfd5b961f86b6
Created May 21, 2015 20:42
Template.example.__helpers[" foo"]()

Note the __ underscores, the extra space before the method name, and the parantheses at the end.

Template.plantsListPage.__helpers[" hasNoContent"]()
# User for local dev
FROM app/base
RUN npm install -g orion-cli
# This forces package-catalog update. Should speed up further runs
RUN meteor show meteor-platform
@awatson1978
awatson1978 / gist:58181df67a66863f1cf0
Created April 3, 2015 16:56
Publishing a Command Line Tool in a Package
First you'll need an NPM package.
http://www.bennadel.com/blog/2329-building-executable-scripts-for-the-mac-osx-command-line-with-node-js.htm
Then you'll need to publish it.
https://gist.github.com/coolaj86/1318304
Then you'll need to add it to an atomsphere package.
https://github.com/awatson1978/meteor-cookbook/blob/master/cookbook/packages.md
````sh
https://projects.tessel.io/projects/enviroreport-web-dashboard-for-climate-module
https://github.com/chaivrep/EnviroReport
http://blog.mongodb.org/post/65517193370/schema-design-for-time-series-data-in-mongodb
@awatson1978
awatson1978 / gist:3bb14f06bb6ae874ee8e
Last active June 2, 2017 22:11
Javascript Patterns
https://carldanley.com/javascript-design-patterns/
https://carldanley.com/js-factory-pattern/
https://www.airpair.com/node.js/posts/top-10-mistakes-node-developers-make