mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
16 lines
420 B
JavaScript
16 lines
420 B
JavaScript
var expect = global.expect = require("./expect");
|
|
|
|
var Radix = require('../lib/radix');
|
|
var _ = String.fromCharCode(29);
|
|
|
|
describe('Radix', function(){ // moved to ./rad/rad.js
|
|
it('read', function(){
|
|
var rad = Radix();
|
|
rad('asdf.pub', 'yum');
|
|
rad('ablah', 'cool');
|
|
rad('node/circle.bob', 'awesome');
|
|
|
|
expect(rad('asdf.')).to.be.eql({pub: {'': 'yum'}});
|
|
expect(rad('nv/foo.bar')).to.be(undefined);
|
|
});
|
|
}); |