Members
# static constant exports.makeSampleChallenge
Creates a sample challenge for testing purposes.
# static constant exports.makeSampleChallengeArray
Creates an array of challenge ids.
# static constant exports.makeSampleChallengeSlugArray
Creates an array of challenge slugs.
# static constant exports.makeSampleDeveloper
Creates a sample developer.
Methods
# static exports.makeSampleInterest() → {String}
Creates an Interest with a unique slug and returns its docID. Also creates a new InterestType.
The docID for the newly generated Interest.
# static exports.makeSampleInterestArray(numInterests) → {Array.<string>}
Returns an array of interestIDs.
Parameters:
Name | Type | Description |
---|---|---|
numInterests |
number | the number of interestIDs. Defaults to 1. |
# static exports.makeSampleInterestSlugArray(numInterests) → {Array.<string>}
Returns an array of defined Interest slugs.
Parameters:
Name | Type | Description |
---|---|---|
numInterests |
the number of Interests to define. Defaults to 1. |
An array of defined Interest Slugs.
# static exports.makeSampleSkill() → {String}
Creates an Skill with a unique slug and returns its docID. Also creates a new SkillType.
The docID for the newly generated Skill.
# static exports.makeSampleSkillArray(numSkills) → {Array.<string>}
Returns an array of SkillIDs.
Parameters:
Name | Type | Description |
---|---|---|
numSkills |
number | the number of SkillIDs. Defaults to 1. |
# static exports.makeSampleSkillSlugArray(numSkills) → {Array.<string>}
Returns an array of defined Skill slugs.
Parameters:
Name | Type | Description |
---|---|---|
numSkills |
the number of Skills to define. Defaults to 1. |
An array of defined Skill Slugs.
# static exports.makeSampleTool() → {String}
Creates an Tool with a unique slug and returns its docID. Also creates a new ToolType.
The docID for the newly generated Tool.
# static exports.makeSampleToolArray(numTools) → {Array.<string>}
Returns an array of ToolIDs.
Parameters:
Name | Type | Description |
---|---|---|
numTools |
number | the number of ToolIDs. Defaults to 1. |
# static exports.makeSampleToolSlugArray(numTools) → {Array.<string>}
Returns an array of defined Tool slugs.
Parameters:
Name | Type | Description |
---|---|---|
numTools |
the number of Tools to define. Defaults to 1. |
An array of defined Tool Slugs.
# static exports.withLoggedInUser()
Returns a Promise that resolves if one can successfully login with the passed credentials. Credentials default to the standard admin username and password.