Files
tekelanew_acs/acs/nladmin-ui/node_modules/save/test/id-property.js
2024-12-05 09:33:18 +08:00

18 lines
509 B
JavaScript

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()
})
})
})
}