This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// sign up flow | |
var ie = yield launch("ie", 8, "http://localhost:8080"); | |
yield robot.focus(ie); | |
yield robot.find({ | |
type: "button", | |
text: "sign up" | |
}).click(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// model(db, query) | |
var model = mesh.model(db, { _id: "ball" }); | |
// watch entire model | |
model.watch(function() { | |
}); | |
// watch specific props (delta) | |
model.watch({active: true}, function() { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var crudlet = require("crudlet"); | |
var localstore = require("crudlet-local-storage"); | |
var pubnub = require("crudlet-pubnub"); | |
var http = require("crudlet-http"); | |
var localdb = localstore(); | |
var httpdb = http() | |
var pubdb = pubnub(); | |
var allDbs = crudlet.parallel(httpdb, pubdb); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var db = crudlet(localdb()); | |
var peopleDb = db.child({ collection:"people", localdb: {limit: 10} }); |