Files
tekelanew_acs/acs/nladmin-ui/node_modules/save/test/id-property.js

18 lines
509 B
JavaScript
Raw Normal View History

2024-12-03 17:40:13 +08:00
module.exports = function(idProperty, getEngine) {
describe('#idProperty', function() {
it('should return name of the idProperty', function(done) {
getEngine(function(ignoreError, engine) {
engine.idProperty.should.eql('_id')
done()
})
})
it('should should be able to change the idProperty', function(done) {
getEngine({ idProperty: 'hello' }, function(ignoreError, engine) {
engine.idProperty.should.eql('hello')
done()
})
})
})
}