Skip to content

Instantly share code, notes, and snippets.

@othiym23
Created May 7, 2015 01:35
Show Gist options
  • Save othiym23/2eed82e337ad00d7301f to your computer and use it in GitHub Desktop.
Save othiym23/2eed82e337ad00d7301f to your computer and use it in GitHub Desktop.
# Subtest: test/01c-user-updates.js
TAP version 13
# Subtest: update profile
ok 1 - should be equivalent
ok 2 - should be equivalent
1..2
ok 1 - update profile # time=44.829ms
# Subtest: update email
ok 1 - user metadata fetched
null { _id: 'org.couchdb.user:user',
_rev: '3-9526fde59dabba7471b269cddfe2952a',
password_scheme: 'pbkdf2',
iterations: 10,
name: 'user',
email: '[email protected]',
type: 'user',
roles: [],
date: '2015-05-07T01:28:45.074Z',
derived_key: '0b55d023b53e9f10e1a310f9bcda1d0429b97756',
salt: 'd6ec5f679ee28a42ba3ddcb609c2d2cf',
github: 'user',
homepage: 'http://www.user.com' }
ok 2 - user email address changed
ok 3 - user record updated on second fetch
{ _id: 'org.couchdb.user:user',
_rev: '4-272abb0cbdb0017b0b07b24df0c80818',
password_scheme: 'pbkdf2',
iterations: 10,
name: 'user',
email: '[email protected]',
type: 'user',
roles: [],
date: '2015-05-07T01:28:45.074Z',
derived_key: '0b55d023b53e9f10e1a310f9bcda1d0429b97756',
salt: 'd6ec5f679ee28a42ba3ddcb609c2d2cf',
github: 'user',
homepage: 'http://www.user.com' }
ok 4 - should be equivalent
1..4
ok 2 - update email # time=27.028ms
1..2
# time=199.076ms
not ok 4 - test/01c-user-updates.js # time=343.942ms
---
timeout: 30000
file: test/01c-user-updates.js
arguments:
- test/01c-user-updates.js
results:
ok: false
count: 2
pass: 2
plan:
start: 1
end: 2
command: /usr/local/bin/iojs
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment