Jesse Gibson 61dd950a70 Prep package.json for publishing
Move version to smallest possible, change the name to panic-server since
it isn't taken, change the github links to the gundb repositories.
2016-04-01 15:00:18 -06:00
2016-04-01 13:20:30 -06:00
2016-03-04 15:36:12 -07:00
2016-04-01 15:00:18 -06:00
2016-03-15 16:02:59 -06:00

Panic

A distributed testing framework designed for and built by the team at gunDB.

under development

Rough API draft

test('Client/server sync', function () {
	// set env variables
	this.env({
		url: 'http://localhost/gun'
	})

	// on every platform
	this.use(function () {
		this.env.db = new Gun(
			this.env.url
		)
	})

	// only on browsers
	this.client(function (client) {
		client.env.db.get('update').put({
			data: true
		})
	})
	
	// only on node clients
	this.server(function (server) {
		this.env.db.get('update').val(this.done)
	}, 15000)
	// 15 second timeout, run on the server
})

More sketches in notes.js

Description
No description provided
Readme 349 KiB
Languages
JavaScript 100%