index PAGE_SIZE Rows of data per page ✓ default 10 ✓ Integer DOMAIN Domain of server ✓ default unset ✓ String HOST IP or address web server listens on ✓ default localhost ✓ IP address PORT Port web server listens on ✓ default 8000 ✓ Integer ID_LENGTH Length of random ID ✓ default 8 ✓ Integer ALLOW_PUBLIC_API Allow HTTP access to /api ✓ default false ✓ Boolean DELETE_DELAY Cool-down time in days to delete accounts ✓ default 7 ✓ Integer APPLICATION_SERVER URL of application server ✓ Address APPLICATION_SERVER_TOKEN Secret shared between servers ✓ String BCRYPT_WORKLOAD_FACTOR Strength to protect passwords ✓ default 10 ✓ Integer ENCRYPTION_SECRET 32-character secret string ✓ String ENCRYPTION_SECRET_IV 16-character secret string ✓ String LANGUAGE Default, fixed or selectable UI language ✓ default en ✓ Languages folder name ENABLE_LANGUAGE_PREFERENCE Allows users to customize language, timezone and formats ✓ default unset ✓ Boolean DISABLE_REGISTRATION Disable UI (not API) for registering ✓ default unset ✓ Boolean DASHBOARD_SERVER URL of dashboard server ✓ default unset ✓ Address MINIMUM_PASSWORD_LENGTH Shortest password length ✓ default 1 ✓ Integer MAXIMUM_PASSWORD_LENGTH Longest password length ✓ default 50 ✓ Integer MINIMUM_USERNAME_LENGTH Shortest username length ✓ default 1 ✓ Integer MAXIMUM_USERNAME_LENGTH Longest username length ✓ default 50 ✓ Integer MINIMUM_RESET_CODE_LENGTH Shortest reset code length ✓ default 6 ✓ Integer MAXIMUM_RESET_CODE_LENGTH Longest reset code length ✓ default 50 ✓ Integer REQUIRE_PROFILE Require registration information ✓ default unset ✓ Integer USER_PROFILE_FIELDS Information to collect at registration ✓ default contact-email,full-name ✓ Profile property list internal-api/api API#createFromSitemap ✓ should remap urls to object ✓ should capitalize the last segment ✓ should capitalize hyphenated last segment internal-api/format Format#parseDate ✓ should throw error for missing date ✓ should throw error for invalid date Format#date ✓ should zero pad days ✓ should zero pad months internal-api/hash Hash#sha512Hash ✓ should produce the same hash each time Hash#sha512HashCompare ✓ should match text with hash Hash#bcryptHashHash ✓ should hash differently each time Hash#bcryptHashCompare ✓ should match passwords ✓ should not match invalid passwords internal-api/html HTML#parseHTML ✓ should reject invalid strings ✓ should return expected contents HTML#findOrCreateTableBody ✓ should require a document ✓ should require a table ✓ should accept table ids ✓ should return existing TBODY ✓ should create new TBODY as last child of table HTML#renderTable ✓ should require a document ✓ should require a table ✓ should require a template ✓ should require a dataset ✓ should create TR for each item ✓ should alternate TR class ✓ should contain expected data HTML#renderList ✓ should require a document ✓ should require a list ✓ should require a template ✓ should require a dataset ✓ should create LI for each item ✓ should contain expected data HTML#renderTemplate ✓ should require a document ✓ should not require a data object ✓ should require a template ✓ should require a parent element ✓ should append contents to parent element HTML#renderPagination ✓ should require a document ✓ should require a total greater than 0 ✓ should require an offset less than total ✓ should accept null or string offset (49ms) ✓ should enforce global page size ✓ should override global page size internal-api/merge-package-json MergePackageJSON#loadRootJSON Merged content handler order ✓ should put application content handler last ✓ should put dashboard content handlers first ✓ should put module content handlers between dashboard and application ✓ should include nested modules Merged proxy handler order ✓ should put application proxy handlers last ✓ should put dashboard proxy handlers first ✓ should put module proxy handlers between dashboard and application ✓ should include nested modules Merged proxy handler order ✓ should put application proxy handlers last ✓ should put dashboard proxy handlers first ✓ should put module proxy handlers between dashboard and application ✓ should include nested modules internal-api/proxy Proxy#pass ✓ should include x-accountid header (86ms) ✓ should include x-sessionid header (54ms) ✓ should include x-dashboard-server header (53ms) ✓ should create x-application-server-token header (52ms) ✓ should include referer header (71ms) ✓ should send POST data (68ms) ✓ should send multipart POST data (63ms) ✓ should send file upload POST data (67ms) ✓ should execute proxy handlers (52ms) internal-api/response Response#wrapTemplateWithSrcDoc (global setting) ✓ should transfer head content from page to template ✓ should transfer head content from template to page ✓ should transfer navigation to template from page ✓ should transfer title to page from template ✓ should remove menus for guests ✓ should disable administrator menu for normal user (62ms) ✓ should add account menu links from package.json (59ms) ✓ should add administrator menu links from package.json (56ms) Response#wrapTemplateWithSrcDoc (config override) ✓ should transfer head content from page to template ✓ should transfer head content from template to page ✓ should transfer navigation to template from page ✓ should transfer title to page from template ✓ should remove menus for guests ✓ should disable administrator menu for normal user (53ms) ✓ should add account menu links from package.json (58ms) ✓ should add administrator menu links from package.json (52ms) ✓ should execute "page" handlers on the rendered page ✓ should execute "template" handlers on the rendered + page-merged template ✓ should execute "page" and "template" handlers on the rendered + page-merged template ✓ should execute each content handler Response#throw404 ✓ should set 404 status ✓ should contain 404 code ✓ should contain 404 error Response#throw500 ✓ should set 500 status ✓ should contain 500 code ✓ should contain error message Response#throw511 ✓ should set 511 status ✓ should contain 511 code internal-api/server Server#authenticateRequest ✓ should reject missing token ✓ should reject invalid token ✓ should identify user from token (58ms) Server#parsePostData ✓ should ignore file uploads ✓ should ignore no-content uploads ✓ should parse post data Server#receiveRequest ✓ should bind query data of URL to req ✓ should not bind route for unknown url ✓ should bind route to req ✓ should redirect user to verification (66ms) ✓ should execute "before" server handler before identifying user (57ms) ✓ should execute "after" server handler after identifying user (66ms) ✓ should execute "after" server handler after identifying guest ✓ should execute "before" and "after" server handler ✓ should execute each server handler internal-api/sitemap Sitemap#authenticateRequest ✓ should substitute language HTML file (67ms) internal-api/storage-cache get ✓ should require key ✓ should return value set ✓ should require key ✓ should set value remove ✓ should require key ✓ should remove object internal-api/storage-list StorageList#add ✓ should add string properties ✓ should add int properties ✓ should add float properties ✓ should add boolean properties StorageList#addMany ✓ should add multiple properties ✓ should skip duplicates StorageList#count ✓ should count the items (3614ms) ✓ should not count removed items (4817ms) StorageList#remove ✓ should remove the item (2406ms) StorageList#list ✓ should change page size (4818ms) ✓ should enforce offset (3612ms) StorageList#listAll ✓ should return all records (7238ms) internal-api/storage-object getProperties ✓ should return string properties ✓ should return int properties ✓ should return float properties ✓ should return boolean properties getProperty ✓ should return string property ✓ should return int property ✓ should return float property ✓ should return boolean property removeProperty ✓ should delete properties removeProperties ✓ should delete properties setProperty ✓ should set string property ✓ should set int property ✓ should set float property ✓ should set boolean property setProperties ✓ should set string properties ✓ should set int properties ✓ should set float properties ✓ should set boolean properties internal-api/storage Storage#read ✓ should require file ✓ should return file contents Storage#readMany ✓ should require files array ✓ should return files contents Storage#write ✓ should require file ✓ should require contents ✓ should accept content object ✓ should accept content string ✓ should write file contents ✓ should encrypt contents Storage#delete ✓ should require file ✓ should delete file internal-api/timestamp #create ✓ should reject null date ✓ should accept date ✓ should accept string internal-api/uuid #random ✓ should reject null length #v4 ✓ should be a v4 uuid /account/change-password view ✓ should present the form (604ms) submit ✓ should apply new password (screenshots) (3325ms) errors ✓ invalid-new-password (1751ms) ✓ invalid-new-password-length (2058ms) ✓ invalid-confirm-password (1932ms) ✓ invalid-password (1606ms) /account/change-username view ✓ should present the form (524ms) submit ✓ should apply new username (screenshots) (3469ms) errors ✓ invalid-new-username (1382ms) ✓ invalid-new-username-length (1530ms) ✓ invalid-password (1782ms) /account/create-profile view ✓ should present the form (520ms) ✓ should have elements for full-name (526ms) ✓ should have elements for contact-email (522ms) ✓ should have elements for display-email (532ms) ✓ should have elements for dob (543ms) ✓ should have elements for phone (532ms) ✓ should have elements for occupation (534ms) ✓ should have elements for location (510ms) ✓ should have elements for company-name (531ms) ✓ should have elements for website (512ms) submit ✓ should create profile (screenshots) (4615ms) ✓ should create profile with full-name (1307ms) ✓ should create profile and set default (1341ms) ✓ should create profile with display name (1199ms) ✓ should create profile with contact-email (1481ms) ✓ should create profile with display-email (1558ms) ✓ should create profile with dob in YYYY-MM-DD (1276ms) ✓ should create profile with dob in MM-DD-YYYY (1243ms) ✓ should create profile with phone (1673ms) ✓ should create profile with occupation (1686ms) ✓ should create profile with location (1670ms) ✓ should create profile with company-name (1697ms) ✓ should create profile with website (1746ms) errors ✓ invalid-first-name (1046ms) ✓ invalid-first-name-length (2211ms) ✓ invalid-last-name (1005ms) ✓ invalid-last-name-length (2245ms) ✓ invalid-contact-email (1824ms) ✓ invalid-display-email (1951ms) ✓ invalid-display-name (878ms) ✓ invalid-display-name-length (1901ms) ✓ invalid-dob (1919ms) ✓ invalid-phone (872ms) ✓ invalid-occupation (850ms) ✓ invalid-location (897ms) ✓ invalid-company-name (871ms) ✓ invalid-website (944ms) /account/create-reset-code view ✓ should present the form (520ms) submit ✓ should create reset code (screenshots) (2597ms) errors ✓ invalid-secret-code (917ms) ✓ invalid-secret-code-length (1859ms) /account/delete-account-complete view ✓ should present 3 days remaining message (1450ms) ✓ should present 7 days remaining message (1490ms) ✓ should present instant deletion message (1572ms) ✓ should present instant delete message (screenshots) (2601ms) /account/delete-account view ✓ should present the form (558ms) submit ✓ should mark account deleted (screenshots) (2590ms) errors ✓ invalid-password (1047ms) /account/delete-profile before ✓ should bind data (68ms) exceptions ✓ invalid-profileid (42ms) ✓ invalid-profile (42ms) ✓ invalid-account (135ms) view ✓ should present the form (517ms) submit ✓ should delete profile (screenshots) (4051ms) /account/delete-reset-code before ✓ should bind data (57ms) exceptions ✓ invalid-reset-codeid (45ms) ✓ invalid-account (97ms) view ✓ should present the form (528ms) submit ✓ should delete reset code (screenshots) (3242ms) /account/edit-profile view ✓ should present the form (529ms) ✓ should have elements for full-name (535ms) ✓ should have elements for display-name (545ms) ✓ should have elements for contact-email (531ms) ✓ should have elements for display-email (544ms) ✓ should have elements for dob (651ms) ✓ should have elements for phone (514ms) ✓ should have elements for occupation (524ms) ✓ should have elements for location (528ms) ✓ should have elements for company-name (537ms) ✓ should have elements for website (544ms) submit ✓ should update profile (screenshots) (7290ms) ✓ should update profile with full-name (1357ms) ✓ should update profile with display name (1156ms) ✓ should update profile with contact-email (1617ms) ✓ should update profile with display-email (1378ms) ✓ should update profile with dob in YYYY-MM-DD (1255ms) ✓ should update profile with dob in MM-DD-YYYY (1253ms) ✓ should update profile with phone (1674ms) ✓ should update profile with occupation (1787ms) ✓ should update profile with location (1642ms) ✓ should update profile with company-name (1669ms) ✓ should update profile with website (1637ms) errors ✓ invalid-first-name (1048ms) ✓ invalid-first-name-length (2251ms) ✓ invalid-last-name (1100ms) ✓ invalid-last-name-length (2244ms) ✓ invalid-contact-email (1824ms) ✓ invalid-display-email (1913ms) ✓ invalid-display-name (865ms) ✓ invalid-display-name-length (1939ms) ✓ invalid-dob (2017ms) ✓ invalid-phone (865ms) ✓ invalid-occupation (877ms) ✓ invalid-location (862ms) ✓ invalid-company-name (896ms) ✓ invalid-website (874ms) /account/end-all-sessions view ✓ should present the form (535ms) submit ✓ should generate a new session key (screenshots) (1958ms) /account/end-session before ✓ should bind data to req (58ms) view ✓ should present the form (536ms) submit ✓ should end the session (screenshots) (3326ms) ✓ should end current session (769ms) /account view ✓ should return page (screenshots) (1391ms) ✓ should not link to account preferences (1415ms) ✓ should link to account preferences (1413ms) /account/language exceptions ✓ should require language enabled (44ms) view ✓ should present the form (551ms) submit ✓ should change the language (screenshots) (2503ms) /account/profile before ✓ should bind data to req (54ms) view ✓ should present the profile table (screenshots) (2682ms) ✓ should show fields if data exists (4413ms) /account/profiles before ✓ should bind data to req view ✓ should return one page (screenshots) ✓ should change page size ✓ should change offset ✓ should show fields if data exists (4474ms) /account/register view ✓ should present the form (408ms) ✓ should disable the form (372ms) ✓ should have elements for full-name (397ms) ✓ should have elements for contact-email (375ms) ✓ should have elements for display-email (380ms) ✓ should have elements for dob (399ms) ✓ should have elements for phone (477ms) ✓ should have elements for occupation (373ms) ✓ should have elements for location (375ms) ✓ should have elements for company-name (373ms) ✓ should have elements for website (374ms) submit ✓ should create new account with full name (6576ms) ✓ should create new profile with contact email (6887ms) ✓ should create new profile with display email (6826ms) ✓ should create new profile with display name (6387ms) ✓ should create new profile with dob in YYYY-MM-DD (6449ms) ✓ should create new profile with dob in MM-DD-YYYY (6540ms) ✓ should create new profile with phone (6921ms) ✓ should create new profile with occupation (6909ms) ✓ should create new profile with location (6933ms) ✓ should create new profile with company-name (6944ms) ✓ should create new profile with website (6931ms) ✓ should create 20-minute session (6237ms) ✓ should create account (screenshots) (8506ms) errors ✓ invalid-username (5482ms) ✓ invalid-username-length (5446ms) ✓ invalid-password (5407ms) ✓ invalid-password-length (5220ms) ✓ invalid-confirm (5549ms) ✓ invalid-first-name (6293ms) ✓ invalid-first-name-length (12782ms) ✓ invalid-last-name (6235ms) ✓ invalid-last-name-length (12737ms) ✓ invalid-contact-email (12392ms) ✓ invalid-display-email (12396ms) ✓ invalid-display-name (6098ms) ✓ invalid-display-name-length (12450ms) ✓ invalid-dob (12561ms) ✓ invalid-phone (6120ms) ✓ invalid-occupation (6089ms) ✓ invalid-location (6086ms) ✓ invalid-company-name (6113ms) ✓ invalid-website (6094ms) /account/reset-account view ✓ should present the form (465ms) submit ✓ should reset session key (7087ms) ✓ should reset code last used (6969ms) ✓ should sign in (screenshots) (11427ms) errors ✓ invalid-username (5693ms) ✓ invalid-secret-code (5621ms) ✓ invalid-new-password (5584ms) ✓ invalid-new-password-length (5407ms) ✓ invalid-confirm-password (5600ms) ✓ invalid-account (6683ms) /account/reset-code before ✓ should bind data to req (68ms) view ✓ should present the reset code table (screenshots) (2016ms) /account/reset-codes before ✓ should bind data to req view ✓ should return one page (screenshots) ✓ should change page size ✓ should change offset /account/restore-account view ✓ should present the form (477ms) submit ✓ should unset account deleted (screenshots) (10616ms) errors ✓ invalid-username (5365ms) ✓ invalid-password (5368ms) ✓ invalid-account (5853ms) /account/session before ✓ should bind data to req (65ms) view ✓ should present the session table (screenshots) (2041ms) /account/sessions before ✓ should bind data to req ✓ should exclude ended sessions (593ms) view ✓ should return one page (screenshots) ✓ should change page size ✓ should change offset /account/set-default-profile before ✓ should bind data to req (75ms) view ✓ should present the form (576ms) submit ✓ should set the profile as default (screenshots) (4032ms) /account/signin view ✓ should present the form (366ms) submit ✓ should create session expiring in 20 minutes as default (5994ms) ✓ should create session expiring in 20 minutes (6116ms) ✓ should create session expiring in 8 hours (12124ms) ✓ should create session expiring in 30 days (6195ms) ✓ should sign in (screenshots) (8343ms) errors ✓ invalid-username (4947ms) ✓ invalid-password (5674ms) /account/signout-complete view ✓ should sign out (screenshots) (1561ms) /account/signout view ✓ should end the session (616ms) ✓ should redirect to signout complete page (576ms) ✓ should signout (screenshots) (1481ms) /account/verify view ✓ should present the form (491ms) submit ✓ should mark session as verified (5971ms) ✓ should verify session (screenshots) (10899ms) errors ✓ invalid-username (5056ms) ✓ invalid-password (5804ms) /administrator/account-profiles before ✓ should bind data to req view ✓ should present the profiles table (screenshots) ✓ should return one page ✓ should change page size ✓ should change offset /administrator/account-reset-codes before ✓ should bind data to req view ✓ should present the reset codes table (screenshots) ✓ should return one page ✓ should change page size ✓ should change offset /administrator/account-sessions before ✓ should bind data to req view ✓ should present the sessions table (screenshots) ✓ should return one page ✓ should change page size ✓ should change offset /administrator/account before ✓ should bind data to req (113ms) view ✓ should present the account table (screenshots) (1982ms) ✓ should present the profile table (567ms) ✓ should present the sessions table (561ms) ✓ should hide empty reset codes table (570ms) ✓ should present a populated reset codes table (577ms) /administrator/accounts before ✓ should bind data to req view ✓ should present the accounts table (screenshots) ✓ should return one page ✓ should change page size ✓ should change offset /administrator/administrators before ✓ should bind data to req view ✓ should present the administrators table (screenshots) ✓ should return one page ✓ should change page size ✓ should change offset /administrator/assign-administrator before ✓ should bind data to req (111ms) view ✓ should present the form (565ms) submit ✓ should apply account update (screenshots) (3379ms) /administrator/create-reset-code before ✓ should bind data to req (85ms) view ✓ should present the form (566ms) submit ✓ should create reset code (screenshots) (3902ms) errors ✓ invalid-secret-code (996ms) ✓ invalid-secret-code-length (1905ms) /administrator/delete-account exceptions ✓ should reject invalid accountid (47ms) before ✓ should bind data to req (113ms) view ✓ should present the form (551ms) submit ✓ should immediately delete (screenshots) (3636ms) /administrator/delete-schedule before ✓ should bind data to req (142ms) view ✓ should present the deleted accounts table (screenshots) (1736ms) ✓ should return one page (668ms) ✓ should change page size (710ms) ✓ should change offset (674ms) /administrator view ✓ should return page (screenshots) (1375ms) /administrator/profile before ✓ should bind data to req (89ms) view ✓ should present the profile table (screenshots) (2496ms) ✓ should show fields if data exists (4412ms) /administrator/profiles before ✓ should bind data to req view ✓ should return one page (screenshots) ✓ should change page size ✓ should change offset ✓ should show fields if data exists (4486ms) /administrator/reset-code before ✓ should bind data to req (95ms) view ✓ should present the reset code table (screenshots) (2079ms) /administrator/reset-codes before ✓ should bind data to req view ✓ should present the reset codes table (screenshots) ✓ should return one page ✓ should change page size ✓ should change offset /administrator/reset-session-key before ✓ should bind data to req (94ms) view ✓ should present the form (572ms) submit ✓ should reset session key (screenshots) (3437ms) /administrator/revoke-administrator before ✓ should bind data to req (93ms) view ✓ should present the form (561ms) submit ✓ should revoke administrator status (screenshots) (3469ms) /administrator/schedule-account-delete before ✓ should bind data to req (88ms) view ✓ should present the form (604ms) submit ✓ should schedule account for deletion (screenshots) (3501ms) /administrator/session before ✓ should bind data to req (98ms) view ✓ should present the session table (screenshots) (1978ms) /administrator/sessions before ✓ should bind data to req view ✓ should present the sessions table (screenshots) ✓ should return one page (653ms) ✓ should change page size ✓ should change offset /administrator/transfer-ownership before ✓ should bind data to req (96ms) view ✓ should present the form (544ms) submit ✓ should change ownership (screenshots) (3449ms) /api/administrator/account exceptions invalid-accountid ✓ unspecified querystring accountid (51ms) ✓ invalid querystring accountid (48ms) returns ✓ object (88ms) redacts ✓ usernameHash (115ms) ✓ passwordHash (91ms) ✓ sessionKey (83ms) /api/administrator/accounts-count returns ✓ integer (157ms) /api/administrator/accounts receives ✓ optional querystring offset (integer) ✓ optional querystring limit (integer) ✓ optional querystring all (boolean) returns ✓ array redacts ✓ usernameHash ✓ passwordHash ✓ sessionKey configuration ✓ environment PAGE_SIZE /api/administrator/administrator-accounts-count returns ✓ integer (92ms) /api/administrator/administrator-accounts receives ✓ optional querystring offset (integer) ✓ optional querystring limit (integer) ✓ optional querystring all (boolean) returns ✓ array redacts ✓ usernameHash ✓ passwordHash ✓ sessionKey configuration ✓ environment PAGE_SIZE /api/administrator/create-reset-code exceptions invalid-accountid ✓ unspecified querystring accountid (46ms) ✓ invalid querystring accountid (44ms) invalid-secret-code ✓ missing posted secret-code (88ms) invalid-secret-code-length ✓ invalid posted secret-code length (84ms) returns ✓ object (88ms) configuration ✓ environment MINIMUM_RESET_CODE_LENGTH (82ms) ✓ environment MAXIMUM_RESET_CODE_LENGTH (92ms) /api/administrator/delete-account exceptions invalid-accountid ✓ missing querystring accountid (51ms) ✓ invalid querystring accountid (44ms) receieves ✓ querystring accountid (100ms) returns ✓ boolean (104ms) /api/administrator/deleted-accounts-count returns ✓ querystring accountid (194ms) /api/administrator/deleted-accounts receives ✓ optional querystring offset (integer) (180ms) ✓ optional querystring limit (integer) (146ms) ✓ optional querystring all (boolean) (181ms) returns ✓ array (137ms) redacts ✓ usernameHash (100ms) ✓ passwordHash (90ms) ✓ sessionKey (90ms) configuration ✓ environment PAGE_SIZE (242ms) /api/administrator/profile exceptions invalid-profileid ✓ missing querystring profileid (43ms) ✓ invalid querystring profileid (46ms) returns ✓ object (80ms) /api/administrator/profiles-count returns ✓ integer (173ms) /api/administrator/profiles receives ✓ optional querystring offset (integer) ✓ optional querystring limit (integer) ✓ optional querystring all (boolean) ✓ optional querystring accountid (string) returns ✓ array configuration ✓ environment PAGE_SIZE /api/administrator/reset-account-administrator exceptions invalid-accountid ✓ missing querystring accountid (46ms) ✓ invalid querystring accountid (60ms) invalid-account ✓ accessing account is not owner (128ms) ✓ querystring accountid is not administrator (87ms) returns ✓ object (93ms) /api/administrator/reset-code exceptions invalid-reset-codeid ✓ missing querystring codeid (47ms) ✓ invalid querystring codeid (49ms) returns ✓ object (97ms) redacts ✓ secretCodeHash (91ms) /api/administrator/reset-codes-count returns ✓ integer (200ms) /api/administrator/reset-codes receives ✓ optional querystring offset (integer) ✓ optional querystring limit (integer) ✓ optional querystring all (boolean) ✓ optional querystring accountid (string) returns ✓ array redacts ✓ secretCodeHash configuration ✓ environment PAGE_SIZE /api/administrator/reset-session-key exceptions invalid-accountid ✓ missing querystring accountid (46ms) ✓ invalid querystring accountid (48ms) invalid-account ✓ ineligible querystring account is deleted (87ms) requires ✓ querystring accountid is not deleted (86ms) returns ✓ object (87ms) /api/administrator/session exceptions invalid-sessionid ✓ unspecified querystring accountid (59ms) ✓ invalid querystring sessionid (45ms) returns ✓ object (102ms) redacts ✓ tokenHash (85ms) /api/administrator/sessions-count returns ✓ integer (164ms) /api/administrator/sessions receives ✓ optional querystring offset (integer) ✓ optional querystring limit (integer) ✓ optional querystring all (boolean) ✓ optional querystring accountid (string) returns ✓ array redacts ✓ tokenHash configuration ✓ environment PAGE_SIZE /api/administrator/set-account-administrator exceptions invalid-accountid ✓ unspecified querystring accountid (47ms) ✓ invalid querystring accountid (45ms) invalid-account ✓ ineligible querystring account is already administrator (46ms) requires ✓ querystring accountid is not administrator (49ms) returns ✓ object (89ms) /api/administrator/set-account-deleted exceptions invalid-accountid ✓ unspecified querystring accountid (46ms) ✓ invalid querystring accountid (54ms) invalid-account ✓ ineligible querystring account is already deleted (87ms) invalid-account ✓ querystring accountid is deleted (88ms) returns ✓ object (86ms) configuration ✓ environment DELETE_DELAY (101ms) /api/administrator/set-owner-account exceptions invalid-accountid ✓ missing querystring accountid (43ms) ✓ invalid querystring accountid (45ms) invalid-account ✓ ineligible accessing account (125ms) ✓ ineligible querystring account is already owner (43ms) requires ✓ accessing account is owner (135ms) ✓ querystring account is not owner (44ms) ✓ querystring account is not deleted (92ms) returns ✓ object (94ms) /api/user/account exceptions invalid-accountid ✓ missing querystring accountid (43ms) ✓ invalid querystring accountid (50ms) invalid-account ✓ ineligible accessing account (82ms) returns ✓ object (44ms) redacts ✓ usernameHash (45ms) ✓ passwordHash (47ms) ✓ sessionKey (45ms) /api/user/create-account exceptions invalid-username ✓ missing posted username invalid-username-length ✓ posted username too short ✓ posted username too long invalid-password ✓ missing posted password invalid-password-length ✓ posted password too short ✓ posted password too long invalid-first-name ✓ missing posted first-name invalid-first-name-length ✓ posted first-name too short ✓ posted first-name too long invalid-last-name ✓ missing posted last-name invalid-last-name-length ✓ posted last-name too short ✓ posted last-name too long invalid-display-name ✓ missing posted display-name invalid-display-name-length ✓ posted display-name too short ✓ posted display-name too long invalid-company-name ✓ missing posted company-name invalid-contact-email ✓ missing posted contact-email invalid-display-email ✓ missing posted display-email invalid-location ✓ missing posted location invalid-occupation ✓ missing posted occupation invalid-phone ✓ missing posted phone invalid-dob ✓ missing posted dob receives ✓ optionally-required posted first-name ✓ optionally-required posted last-name ✓ optionally-required posted display-name ✓ optionally-required posted company-name ✓ optionally-required posted contact-email ✓ optionally-required posted display-email ✓ optionally-required posted location ✓ optionally-required posted occupation ✓ optionally-required posted phone ✓ optionally-required posted dob returns ✓ object configuration ✓ environment MINIMUM_USERNAME_LENGTH ✓ environment MAXIMUM_USERNAME_LENGTH ✓ environment MINIMUM_PASSWORD_LENGTH ✓ environment MAXIMUM_PASSWORD_LENGTH ✓ environment REQUIRE_PROFILE ✓ environment USER_PROFILE_FIELDS (127ms) ✓ environment MINIMUM_PROFILE_FIRST_NAME_LENGTH ✓ environment MAXIMUM_PROFILE_FIRST_NAME_LENGTH ✓ environment MINIMUM_PROFILE_LAST_NAME_LENGTH ✓ environment MAXIMUM_PROFILE_LAST_NAME_LENGTH ✓ environment MINIMUM_PROFILE_DISPLAY_NAME_LENGTH ✓ environment MAXIMUM_PROFILE_DISPLAY_NAME_LENGTH ✓ environment MINIMUM_PROFILE_COMPANY_NAME_LENGTH ✓ environment MAXIMUM_PROFILE_COMPANY_NAME_LENGTH ✓ override req.userProfileFields (115ms) /api/user/create-profile exceptions invalid-accountid ✓ missing querystring accountid (45ms) ✓ invalid querystring accountid (51ms) invalid-accountid ✓ ineligible accessing account (83ms) invalid-first-name ✓ missing posted first-name (47ms) invalid-first-name-length ✓ posted first-name too short (44ms) ✓ posted first-name too long (45ms) invalid-last-name ✓ missing posted last-name (49ms) invalid-last-name-length ✓ posted last-name too short (49ms) ✓ posted last-name too long (49ms) invalid-display-name ✓ missing posted display-name (46ms) invalid-display-name-length ✓ posted display-name too short (44ms) ✓ posted display-name too long (46ms) invalid-company-name-length ✓ posted company-name too short (46ms) ✓ posted company-name too long (45ms) invalid-company-name-length ✓ invalid-company-name-length (50ms) invalid-contact-email ✓ missing posted contact-email (47ms) invalid-display-email ✓ missing posted display-email (44ms) invalid-location ✓ missing posted location (45ms) invalid-occupation ✓ missing posted occupation (50ms) invalid-phone ✓ missing posted phone (53ms) invalid-dob ✓ missing posted dob (50ms) receives ✓ optionally-required posted first-name (53ms) ✓ optionally-required posted last-name (50ms) ✓ optionally-required posted display-name (47ms) ✓ optionally-required posted company-name (51ms) ✓ optionally-required posted contact-email (52ms) ✓ optionally-required posted display-email (48ms) ✓ optionally-required posted location (59ms) ✓ optionally-required posted occupation (48ms) ✓ optionally-required posted phone (52ms) ✓ optionally-required posted dob (49ms) returns ✓ object (49ms) configuration ✓ environment USER_PROFILE_FIELDS (138ms) ✓ environment MINIMUM_PROFILE_FIRST_NAME_LENGTH (66ms) ✓ environment MAXIMUM_PROFILE_FIRST_NAME_LENGTH (81ms) ✓ environment MINIMUM_PROFILE_LAST_NAME_LENGTH (83ms) ✓ environment MAXIMUM_PROFILE_LAST_NAME_LENGTH (50ms) ✓ environment MINIMUM_PROFILE_DISPLAY_NAME_LENGTH (47ms) ✓ environment MAXIMUM_PROFILE_DISPLAY_NAME_LENGTH (46ms) ✓ environment MINIMUM_PROFILE_COMPANY_NAME_LENGTH (43ms) ✓ environment MAXIMUM_PROFILE_COMPANY_NAME_LENGTH (44ms) ✓ override req.userProfileFields (103ms) /api/user/create-reset-code exceptions invalid-accountid ✓ missing querystring accountid (45ms) ✓ invalid querystring accountid (46ms) invalid-accountid ✓ ineligible accessing account (84ms) invalid-secret-code ✓ missing posted secret-code (48ms) invalid-secret-code-length ✓ posted secret code too short (48ms) ✓ posted secret code too long (46ms) returns ✓ object (53ms) /api/user/create-session exceptions invalid-username ✓ missing posted username invalid-password ✓ missing posted password receives ✓ optional posted remember (hours|days) (65ms) returns ✓ object (52ms) /api/user/delete-profile exceptions invalid-profileid ✓ missing querystring profileid (42ms) ✓ invalid querystring profileid (56ms) invalid-profile ✓ querystring profileid is default contact profile (50ms) invalid-account ✓ ineligible querystring profileid (80ms) returns ✓ boolean (56ms) /api/user/delete-reset-code exceptions invalid-reset-codeid ✓ missing querystring codeid (44ms) ✓ invalid querystring codeid (45ms) invalid-account ✓ ineligible querystring codeid (88ms) returns ✓ boolean (61ms) /api/user/profile exceptions invalid-profileid ✓ missing querystring profileid (46ms) ✓ invalid querystring profileid (57ms) invalid-account ✓ ineligible querystring profileid (82ms) returns ✓ object (51ms) /api/user/profiles-count exceptions invalid-accountid ✓ missing querystring accountid (47ms) ✓ invalid querystring accountid (46ms) invalid-account ✓ ineligible accessing account (78ms) returns ✓ integer (75ms) /api/user/profiles exceptions invalid-accountid ✓ missing querystring accountid (38ms) ✓ invalid querystring accountid (43ms) invalid-account ✓ ineligible accessing account (86ms) receives ✓ optional querystring offset (integer) ✓ optional querystring limit (integer) ✓ optional querystring all (boolean) returns ✓ array configuration ✓ environment PAGE_SIZE /api/user/reset-account-deleted exceptions invalid-username ✓ missing posted username (56ms) ✓ invalid posted username (50ms) invalid-password ✓ missing posted password (51ms) ✓ invalid posted password (56ms) invalid-account ✓ credentialed account is not scheduled for deletion (46ms) returns ✓ object (59ms) /api/user/reset-account-password exceptions invalid-username ✓ missing posted username ✓ invalid posted username invalid-password ✓ missing posted new-password invalid-secret-code ✓ missing posted secret-code invalid-reset-code ✓ invalid posted secret-code (44ms) returns ✓ boolean (63ms) /api/user/reset-code exceptions invalid-reset-codeid ✓ missing querystring codeid (42ms) ✓ invalid querystring codeid (43ms) invalid-account ✓ ineligible querystring codeid (89ms) returns ✓ object (52ms) redacts ✓ secretCodeHash (57ms) /api/user/reset-codes-count exceptions invalid-accountid ✓ missing querystring accountid (44ms) ✓ invalid querystring accountid (42ms) invalid-account ✓ ineligible accessing account (84ms) returns ✓ integer (75ms) /api/user/reset-codes exceptions invalid-accountid ✓ missing querystring accountid (38ms) ✓ invalid querystring accountid (42ms) invalid-account ✓ ineligible accessing account (79ms) receives ✓ optional querystring offset (integer) ✓ optional querystring limit (integer) ✓ optional querystring all (boolean) returns ✓ array redacts ✓ secretCodeHash configuration ✓ environment PAGE_SIZE /api/user/reset-session-key exceptions invalid-accountid ✓ missing querystring accountid (52ms) ✓ invalid querystring accountid (49ms) invalid-account ✓ ineligible accessing account (108ms) returns ✓ boolean (57ms) /api/user/session exceptions invalid-sessionid ✓ missing querystring sessionid (46ms) ✓ invalid querystring sessionid (48ms) invalid-account ✓ ineligible querystring sessionid (83ms) returns ✓ object (53ms) redacts ✓ tokenHash (43ms) /api/user/sessions-count exceptions invalid-accountid ✓ missing querystring accountid (48ms) ✓ invalid querystring accountid (44ms) invalid-account ✓ ineligible accessing account (81ms) returns ✓ integer (81ms) /api/user/sessions exceptions invalid-accountid ✓ missing querystring accountid ✓ invalid querystring accountid (72ms) invalid-account ✓ ineligible accessing account (80ms) receives ✓ optional querystring offset (integer) ✓ optional querystring limit (integer) ✓ optional querystring all (boolean) returns ✓ array configuration ✓ environment PAGE_SIZE /api/user/set-account-deleted exceptions invalid-accountid ✓ missing querystring accountid (43ms) ✓ invalid querystring accountid (47ms) invalid-account ✓ ineligible accessing account (91ms) invalid-password ✓ missing posted password (45ms) ✓ invalid posted password (51ms) returns ✓ object (55ms) configuration ✓ environment DELETE_DELAY (47ms) /api/user/set-account-language exceptions invalid-accountid ✓ missing querystring accountid (43ms) ✓ invalid querystring accountid (76ms) invalid-account ✓ ineligible accessing account (80ms) invalid-language ✓ missing posted language (50ms) ✓ invalid posted language (48ms) receives ✓ required posted language (45ms) returns ✓ object (55ms) /api/user/set-account-password exceptions invalid-accountid ✓ missing querystring accountid (46ms) ✓ invalid querystring accountid (42ms) invalid-account ✓ ineligible accessing account (79ms) invalid-password ✓ missing posted password (45ms) ✓ invalid posted password (49ms) invalid-new-password ✓ missing posted new-password (43ms) invalid-new-password-length ✓ posted new-password too short (47ms) ✓ posted new-password too long (44ms) returns ✓ object (50ms) /api/user/set-account-profile exceptions invalid-accountid ✓ missing querystring accountid (50ms) ✓ invalid querystring accountid (46ms) invalid-account ✓ ineligible accessing account (83ms) invalid-profileid ✓ missing posted profileid (44ms) ✓ invalid posted profileid (48ms) returns ✓ object (55ms) /api/user/set-account-username exceptions invalid-accountid ✓ missing querystring accountid (42ms) ✓ invalid querystring accountid (46ms) invalid-account ✓ ineligible accessing account (86ms) invalid-password ✓ missing posted password (100ms) ✓ invalid posted password (53ms) invalid-new-username ✓ missing posted new-username (47ms) invalid-new-username-length ✓ posted new-username too short (43ms) ✓ posted new-username too long (49ms) returns ✓ object (57ms) /api/user/set-session-ended exceptions invalid-sessionid ✓ missing querystring sessionid (47ms) ✓ invalid querystring sessionid (44ms) invalid-session ✓ querystring sessionid is not active session (64ms) invalid-account ✓ ineligible querystring sessionid (78ms) returns ✓ object (52ms) /api/user/set-session-verified exceptions invalid-sessionid ✓ missing querystring sessionid (43ms) ✓ invalid querystring sessionid (44ms) invalid-account ✓ ineligible querystring sessionid (79ms) returns ✓ object (53ms) /api/user/update-profile exceptions invalid-profileid ✓ missing querystring profileid (43ms) ✓ invalid querystring profileid (49ms) invalid-profileid ✓ ineligible querystring profileid (83ms) invalid-first-name ✓ missing posted first-name (53ms) invalid-first-name-length ✓ posted first-name too short (46ms) ✓ posted first-name too long (52ms) invalid-last-name ✓ missing posted last-name (44ms) invalid-last-name-length ✓ posted last-name too short (50ms) ✓ posted last-name too long (43ms) invalid-display-name ✓ missing posted display-name (44ms) invalid-display-name-length ✓ posted display-name too short (44ms) ✓ posted display-name too long (48ms) invalid-company-name ✓ missing posted company-name (46ms) invalid-company-name-length ✓ posted company-name too short (46ms) ✓ posted company-name too long (49ms) invalid-contact-email ✓ missing posted contact-email (45ms) invalid-display-email ✓ missing posted display-email (47ms) invalid-location ✓ missing posted location (43ms) invalid-occupation ✓ missing posted occupation (43ms) invalid-phone ✓ missing posted phone (45ms) invalid-dob ✓ missing posted dob (45ms) receives ✓ optionally-required posted first-name (49ms) ✓ optionally-required posted last-name (47ms) ✓ optionally-required posted display-name (48ms) ✓ optionally-required posted company-name (46ms) ✓ optionally-required posted contact-email (48ms) ✓ optionally-required posted display-email (49ms) ✓ optionally-required posted location (53ms) ✓ optionally-required posted occupation (48ms) ✓ optionally-required posted phone (47ms) ✓ optionally-required posted dob (47ms) returns ✓ object (48ms) configuration ✓ environment USER_PROFILE_FIELDS (115ms) ✓ environment MINIMUM_PROFILE_FIRST_NAME_LENGTH (60ms) ✓ environment MAXIMUM_PROFILE_FIRST_NAME_LENGTH (45ms) ✓ environment MINIMUM_PROFILE_LAST_NAME_LENGTH (49ms) ✓ environment MAXIMUM_PROFILE_LAST_NAME_LENGTH (74ms) ✓ environment MINIMUM_PROFILE_DISPLAY_NAME_LENGTH (50ms) ✓ environment MAXIMUM_PROFILE_DISPLAY_NAME_LENGTH (44ms) ✓ environment MINIMUM_PROFILE_COMPANY_NAME_LENGTH (46ms) ✓ environment MAXIMUM_PROFILE_COMPANY_NAME_LENGTH (44ms) ✓ override req.userProfileFields (90ms) index MINIMUM_ORGANIZATION_NAME_LENGTH Shortest organization name length ✓ default 1 ✓ Integer MAXIMUM_ORGANIZATION_NAME_LENGTH Longest organization name length ✓ default 50 ✓ Integer MINIMUM_INVITATION_CODE_LENGTH Shortest invitation code length ✓ default 6 ✓ Integer MAXIMUM_INVITATION_CODE_LENGTH Longest invitation code length ✓ default 50 ✓ Integer MEMBERSHIP_PROFILE_FIELDS Personal information to share with members ✓ default display-name,display-email ✓ Profile property list /account/organizations/accept-invitation view ✓ should present the form (562ms) ✓ should exclude invalid profiles (597ms) submit ✓ should accept valid existing profile (2266ms) ✓ should accept invitation and create profile (screenshots) (4611ms) errors ✓ invalid-account (4061ms) /account/organizations/create-invitation exceptions ✓ invalid-account (179ms) before ✓ should bind data to req (69ms) view ✓ should present the form (542ms) submit ✓ should create invitation (screenshots) (4633ms) /account/organizations/create-organization view ✓ should present the form (514ms) submit ✓ should accept valid existing profile (1614ms) ✓ should create organization (screenshots) (3514ms) errors ✓ invalid-organization-name (1242ms) ✓ invalid-organization-name-length (3560ms) ✓ invalid-organization-email (1974ms) /account/organizations/delete-invitation exceptions ✓ invalid-account (114ms) before ✓ should bind data (81ms) view ✓ should present the form (549ms) submit ✓ should delete invitation (screenshots) (4032ms) /account/organizations/delete-membership exceptions ✓ invalid-account (223ms) before ✓ should bind data to req (153ms) view ✓ should present the form (664ms) submit ✓ should delete membership (screenshots) (3452ms) /account/organizations/delete-organization exceptions ✓ invalid-account (134ms) before ✓ should bind data to req (65ms) view ✓ should present the form (546ms) submit ✓ should delete organization (screenshots) (3918ms) /account/organizations/edit-membership-profile view ✓ should present the form (629ms) ✓ should have elements for full-name (697ms) ✓ should have elements for display-name (678ms) ✓ should have elements for contact-email (627ms) ✓ should have elements for display-email (613ms) ✓ should have elements for dob (598ms) ✓ should have elements for phone (597ms) ✓ should have elements for occupation (614ms) ✓ should have elements for location (639ms) ✓ should have elements for company-name (605ms) ✓ should have elements for website (607ms) submit ✓ should update profile (screenshots) (6850ms) ✓ should update profile with full-name (1414ms) ✓ should update profile with display name (1361ms) ✓ should update profile with contact-email (1639ms) ✓ should update profile with display-email (1746ms) ✓ should update profile with dob in YYYY-MM-DD (1463ms) ✓ should update profile with dob in MM-DD-YYYY (1358ms) ✓ should update profile with phone (1784ms) ✓ should update profile with occupation (1806ms) ✓ should update profile with location (1749ms) ✓ should update profile with company-name (1791ms) ✓ should update profile with website (1766ms) errors ✓ invalid-first-name (1126ms) ✓ invalid-first-name-length (2396ms) ✓ invalid-last-name (1139ms) ✓ invalid-last-name-length (2355ms) ✓ invalid-contact-email (1955ms) ✓ invalid-display-email (1997ms) ✓ invalid-display-name (964ms) ✓ invalid-display-name-length (2058ms) ✓ invalid-dob (2083ms) ✓ invalid-phone (967ms) ✓ invalid-occupation (973ms) ✓ invalid-location (982ms) ✓ invalid-company-name (1063ms) ✓ invalid-website (955ms) /account/organizations/edit-organization exceptions ✓ should require owner (105ms) before ✓ should bind data to req (76ms) view ✓ should present the form (574ms) submit ✓ should apply organization update (screenshots) (4794ms) errors ✓ invalid-organization-name (1387ms) ✓ invalid-organization-name-length (2042ms) ✓ invalid-organization-email (1104ms) /account/organizations/index before ✓ should bind data to req (149ms) view ✓ should have row for each organization (599ms) ✓ should have row for each membership (screenshots) (1525ms) /account/organizations/invitation before ✓ should require owner (118ms) ✓ should bind data to req (74ms) view ✓ should have row for invitation (screenshots) (3800ms) /account/organizations/membership before ✓ should reject non-member (176ms) ✓ should bind data to req (147ms) view ✓ should have row for membership (screenshots) (2403ms) ✓ should show profile fields if data exists (3321ms) /account/organizations/memberships before ✓ should bind data to req view ✓ should return one page (screenshots) ✓ should change page size ✓ should change offset ✓ should show profile fields if data exists (4872ms) /account/organizations/organization-invitations before ✓ should require owner (111ms) ✓ should bind data to req view ✓ should return one page (screenshots) ✓ should change page size ✓ should change offset /account/organizations/organization-memberships before ✓ should bind data to req view ✓ should return one page (screenshots) ✓ should change page size ✓ should change offset /account/organizations/organization before ✓ should reject non-member (102ms) ✓ should bind data to req (143ms) view ✓ should have row for organization (screenshots) (2792ms) /account/organizations/organizations before ✓ should bind data to req view ✓ should return one page (screenshots) ✓ should change page size ✓ should change offset /account/organizations/revoke-membership exceptions ✓ invalid-account (146ms) before ✓ should bind data to req (142ms) view ✓ should present the form (598ms) submit ✓ should delete membership (screenshots) (5092ms) /account/organizations/transfer-organization exceptions ✓ invalid-account (159ms) before ✓ should bind data to req (142ms) view ✓ should present the form (627ms) submit ✓ should transfer ownership (screenshots) (4154ms) /administrator/organizations/index before ✓ should bind data to req (249ms) view ✓ should have row for each organization (screenshots) (1524ms) ✓ should have organization row for each membership (686ms) /administrator/organizations/invitation before ✓ should bind data to req (129ms) view ✓ should have row for invitation (screenshots) (2692ms) /administrator/organizations/invitations before ✓ should bind data to req view ✓ should return one page (screenshots) ✓ should change page size ✓ should change offset /administrator/organizations/membership before ✓ should bind data to req (190ms) view ✓ should have row for membership (screenshots) (2813ms) /administrator/organizations/memberships before ✓ should bind data to req view ✓ should return one page (screenshots) ✓ should change page size ✓ should change offset ✓ should show profile fields if data exists (5055ms) /administrator/organizations/organization-invitations before ✓ should bind data to req view ✓ should return one page (screenshots) ✓ should change page size ✓ should change offset /administrator/organizations/organization-memberships before ✓ should bind data to req view ✓ should return one page (screenshots) ✓ should change page size ✓ should change offset /administrator/organizations/organization before ✓ should bind data to req (182ms) view ✓ should have row for organization (screenshots) (1754ms) /administrator/organizations/organizations before ✓ should bind data to req view ✓ should return one page (screenshots) ✓ should change page size ✓ should change offset /api/administrator/organizations/invitation exceptions invalid-invitationid ✓ missing querystring invitationid (65ms) ✓ invalid querystring invitationid (47ms) returns ✓ object (115ms) redacts ✓ secretCodeHash (124ms) /api/administrator/organizations/invitations-count returns ✓ integer (244ms) /api/administrator/organizations/invitations receives ✓ optional querystring offset (integer) ✓ optional querystring limit (integer) ✓ optional querystring all (boolean) ✓ optional querystring accountid (string) ✓ optional querystring organizationid (string) returns ✓ array configuration ✓ environment PAGE_SIZE /api/administrator/organizations/membership exceptions invalid-membershipid ✓ missing querystring membershipid (45ms) ✓ invalid querystring membershipid (46ms) returns ✓ object (185ms) /api/administrator/organizations/memberships-count returns ✓ integer (367ms) /api/administrator/organizations/memberships receives ✓ optional querystring offset (integer) ✓ optional querystring limit (integer) ✓ optional querystring all (boolean) ✓ optional querystring accountid (string) ✓ optional querystring organizationid (string) returns ✓ array configuration ✓ environment PAGE_SIZE /api/administrator/organizations/organization exceptions invalid-organizationid ✓ unspecified querystring organizationid (44ms) ✓ invalid querystring organizationid (43ms) returns ✓ object (104ms) /api/administrator/organizations/organizations-count returns ✓ integer (282ms) /api/administrator/organizations/organizations receives ✓ optional querystring offset (integer) ✓ optional querystring limit (integer) ✓ optional querystring all (boolean) ✓ optional querystring accountid (string) returns ✓ array configuration ✓ environment PAGE_SIZE /api/user/organizations/create-invitation exceptions invalid-organizationid ✓ missing querystring organizationid (44ms) ✓ invalid querystring organizationid (43ms) invalid-secret-code ✓ missing posted secret-code (69ms) invalid-secret-code-length ✓ posted secret-code too short (69ms) ✓ posted secret-code too long (67ms) invalid-account ✓ accessing account is not organization owner (104ms) receives ✓ required posted secret-code (71ms) returns ✓ object (72ms) /api/user/organizations/create-membership exceptions invalid-invitationid ✓ missing querystring invitationid (45ms) ✓ invalid querystring invitationid (52ms) invalid-invitation ✓ querystring invitationid has been used (171ms) ✓ posted secret-code has been used (182ms) invalid-secret-code ✓ missing posted secret-code (109ms) ✓ invalid posted secret-code (131ms) invalid-account ✓ accessing account is organization owner (78ms) ✓ accessing account is organization member (148ms) invalid-profileid ✓ missing posted profileid (114ms) ✓ invalid posted profileid (113ms) invalid-profile ✓ ineligible posted profileid is missing fields (128ms) invalid-invitation ✓ querystring invitationid is not open invitation (181ms) receives ✓ required posted secret-code (137ms) ✓ required posted profileid (128ms) returns ✓ object (127ms) /api/user/organizations/create-organization exceptions invalid-organization-name ✓ missing posted name (49ms) invalid-organization-name-length ✓ posted name too short (70ms) ✓ posted name too long (75ms) invalid-organization-email ✓ missing posted email (51ms) ✓ invalid posted email (50ms) invalid-profile ✓ missing posted profileid (44ms) ✓ invalid posted profileid (46ms) ✓ ineligible posted profileid missing fields (52ms) receives ✓ required posted organization-email (62ms) ✓ required posted organization-name (56ms) ✓ required posted profileid (67ms) returns ✓ object (56ms) /api/user/organizations/delete-invitation exceptions invalid-invitationid ✓ missing querystring invitationid (43ms) ✓ invalid querystring invitationid (46ms) invalid-invitation ✓ querystring invitationid is used invitation (143ms) invalid-account ✓ accessing account is not organization owner (114ms) returns ✓ boolean (81ms) /api/user/organizations/delete-membership exceptions invalid-membershipid ✓ missing querystring membershipid (44ms) ✓ invalid querystring membershipid (45ms) invalid-account ✓ accessing account is not membership or organization owner (173ms) returns ✓ boolean (142ms) /api/user/organizations/delete-organization exceptions invalid-organizationid ✓ missing querystring organizationid (42ms) ✓ invalid querystring organizationid (44ms) invalid-account ✓ accessing account does not own organization (131ms) returns ✓ boolean (71ms) /api/user/organizations/invitation exceptions invalid-invitationid ✓ missing querystring invitationid (44ms) ✓ invalid querystring invitationid (44ms) invalid-account ✓ accessing account is not organization owner (149ms) returns ✓ object (78ms) redacts ✓ secretCodeHash (80ms) /api/user/organizations/invitations-count exceptions invalid-accountid ✓ missing querystring accountid (43ms) ✓ invalid querystring accountid (45ms) invalid-account ✓ ineligible accessing account (144ms) returns ✓ integer (94ms) /api/user/organizations/invitations exceptions invalid-accountid ✓ missing querystring accountid (45ms) ✓ invalid querystring accountid (42ms) invalid-account ✓ ineligible accessing account (139ms) receives ✓ optional querystring offset (integer) ✓ optional querystring limit (integer) ✓ optional querystring all (boolean) ✓ optional querystring organizationid (string) returns ✓ array configuration ✓ environment PAGE_SIZE /api/user/organizations/membership exceptions invalid-membershipid ✓ missing querystring membershipid (46ms) ✓ invalid querystring membershipid (44ms) invalid-account ✓ accessing account must be organization member or owner (176ms) returns ✓ object (135ms) /api/user/organizations/memberships-count exceptions invalid-accountid ✓ missing querystring accountid (45ms) ✓ invalid querystring accountid (43ms) invalid-account ✓ ineligible accessing account (139ms) returns ✓ integer (306ms) /api/user/organizations/memberships exceptions invalid-accountid ✓ missing querystring accountid (46ms) ✓ invalid querystring accountid (55ms) invalid-account ✓ ineligible accessing account (167ms) receives ✓ optional querystring offset (integer) ✓ optional querystring limit (integer) ✓ optional querystring all (boolean) ✓ optional querystring organizationid (string) returns ✓ array configuration ✓ environment PAGE_SIZE /api/user/organizations/invitation exceptions invalid-invitationid ✓ missing querystring invitationid (73ms) ✓ invalid querystring invitationid (51ms) invalid-invitation ✓ querystring invitationid is used (139ms) returns ✓ object (77ms) /api/user/organizations/open-invitation exceptions invalid-invitationid ✓ missing querystring invitationid (45ms) ✓ invalid querystring invitationid (47ms) invalid-invitation ✓ querystring invitationid is used (144ms) returns ✓ object (113ms) redacts ✓ secretCodeHash (142ms) /api/user/organizations/organization-membership exceptions invalid-organizationid ✓ missing querystring organizationid (43ms) ✓ invalid querystring organizationid (47ms) invalid-account ✓ accessing account must be organization member (166ms) returns ✓ object (161ms) /api/user/organizations/organization exceptions invalid-organizationid ✓ missing querystring organizationid (47ms) ✓ invalid querystring organizationid (44ms) invalid-account ✓ accessing account must be organization member (170ms) returns ✓ object (69ms) /api/user/organizations/organizations-count exceptions invalid-accountid ✓ missing querystring accountid (41ms) ✓ invalid querystring accountid (48ms) invalid-account ✓ ineligible accessing account (141ms) returns ✓ integer (101ms) /api/user/organizations/organizations exceptions invalid-accountid ✓ missing querystring accountid (42ms) ✓ invalid querystring accountid (42ms) invalid-account ✓ ineligible accessing account (135ms) receives ✓ optional querystring offset (integer) ✓ optional querystring limit (integer) ✓ optional querystring all (boolean) returns ✓ array configuration ✓ environment PAGE_SIZE /api/user/organizations/set-organization-owner exceptions invalid-organizationid ✓ missing querystring organizationid (43ms) ✓ invalid querystring organizationid (47ms) invalid-accountid ✓ posted accountid is missing (70ms) ✓ posted accountid is invalid (74ms) invalid-account ✓ accessing account is not organization owner (144ms) ✓ posted accountid is organization owner (71ms) ✓ posted accountid is not member (103ms) returns ✓ object (141ms) /api/user/organizations/update-organization exceptions invalid-organizationid ✓ missing querystring organizationid (42ms) ✓ invalid querystring organizationid (44ms) invalid-account ✓ accessing account is not organization owner (154ms) invalid-organization-name ✓ missing posted name (67ms) invalid-organization-name-length ✓ posted name is too short (72ms) ✓ posted name is too long (74ms) invalid-organization-email ✓ missing posted email (73ms) ✓ invalid posted email (66ms) receives ✓ required posted name (71ms) ✓ required posted email (72ms) returns ✓ object (76ms) 1200 passing (17m)