pelias-model
Version:
Pelias data models
24 lines (17 loc) • 540 B
JavaScript
var Document = require('../../Document');
module.exports.tests = {};
module.exports.tests.getGid = function(test) {
test('getGid', function(t) {
var doc = new Document('mysource','mylayer','myid');
t.equal(doc.getGid(), 'mysource:mylayer:myid', 'getter works');
t.end();
});
};
module.exports.all = function (tape, common) {
function test(name, testFunction) {
return tape('gid: ' + name, testFunction);
}
for( var testCase in module.exports.tests ){
module.exports.tests[testCase](test, common);
}
};