fix(tests): update remote db tests for uaFormFactor column

This commit is contained in:
Phil Booth 2017-08-23 14:58:23 +01:00
Родитель e19ebc0a86
Коммит c4d1e50952
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -174,7 +174,7 @@ describe('remote db', function() {
})
.then(sessions => {
assert.equal(sessions.length, 1, 'sessions contains one item')
assert.equal(Object.keys(sessions[0]).length, 16, 'session has correct number of properties')
assert.equal(Object.keys(sessions[0]).length, 17, 'session has correct number of properties')
assert.equal(typeof sessions[0].tokenId, 'string', 'tokenId property is not a buffer')
assert.equal(sessions[0].uid, account.uid, 'uid property is correct')
assert.ok(sessions[0].createdAt >= account.createdAt, 'createdAt property seems correct')
@ -183,6 +183,7 @@ describe('remote db', function() {
assert.equal(sessions[0].uaOS, 'Mac OS X', 'uaOS property is correct')
assert.equal(sessions[0].uaOSVersion, '10.10', 'uaOSVersion property is correct')
assert.equal(sessions[0].uaDeviceType, null, 'uaDeviceType property is correct')
assert.equal(sessions[0].uaFormFactor, null, 'uaFormFactor property is correct')
assert.equal(sessions[0].lastAccessTime, sessions[0].createdAt, 'lastAccessTime property is correct')
// Fetch the session token