mirror of
https://github.com/thinkjs/thinkjs.git
synced 2026-01-25 14:42:47 +00:00
完善Model的单元测试
This commit is contained in:
parent
7bff73355b
commit
0a29cb0bbf
@ -245,6 +245,10 @@ describe('Model', function(){
|
||||
var unique = model.getUniqueField({});
|
||||
assert.equal(unique, undefined)
|
||||
})
|
||||
it('getUniqueField with data', function(){
|
||||
var unique = model.getUniqueField({title: 1});
|
||||
assert.equal(unique, 'title')
|
||||
})
|
||||
})
|
||||
|
||||
describe('getLastSql', function(){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user