mirror of
https://github.com/amark/gun.git
synced 2026-03-21 15:49:25 +00:00
ONE BIG MASSIVE UPDATE
This commit is contained in:
24
test/set.js
Normal file
24
test/set.js
Normal file
@@ -0,0 +1,24 @@
|
||||
(function(){ // group test
|
||||
|
||||
var Gun = require('../index');
|
||||
require('../lib/set');
|
||||
var gun = Gun({file: 'data.json'});
|
||||
|
||||
gun.set({
|
||||
name: "Mark Nadal",
|
||||
age: 23,
|
||||
type: "human"
|
||||
}).back.set({
|
||||
name: "Amber Nadal",
|
||||
age: 23,
|
||||
type: "human"
|
||||
}).back.set({
|
||||
name: "Hobbes",
|
||||
age: 4,
|
||||
type: "kitten"
|
||||
}).back.val(function(g){
|
||||
//console.log("GOT", g, this.__.graph);
|
||||
}).map(function(val, id){
|
||||
//console.log("map", id, val);
|
||||
});
|
||||
}());
|
||||
Reference in New Issue
Block a user