Creates a new TestValues object.
Readonly categoriesAn Array containing all existing CategoryNames.
Readonly categoriesThe number of existing CategoryNames.
Readonly invalidReadonly invalidExamples of invalid Fields as JSONObjects, created from the JSON files in invalidMocksPath as well as from #invalidIDs and #invalidUIDs.
Readonly invalidIDsHand-picked examples of invalid Fields#ids.
Readonly invalidExamples of invalid Mistakes as JSONObjects, created from #invalidFieldsJSONobjects.
Readonly invalidHand-picked invalid prefixes for Fields#names.
An Array containing dynamically generated invalid Fields#names.
Readonly invalidHand-picked examples of invalid GrammleID#numbers.
Readonly invalidHand-picked examples of invalid Fields#orderIDs.
Readonly invalidHand-picked examples of invalid RegExps.
Readonly invalidUIDsHand-picked examples of invalid Fields#uids.
Readonly productionContains all the Mistakes from the mistakesFile.
An Array containing the CategoryNames of #randomIDs in the same order.
An Array containing the #randomIDs as #GrammleIDs in the same order.
An Array containing the ID numbers of #randomIDs in the same order.
An Array containing valid Fields#ids. Consists of:
An Array containing valid Fields#orderIDs. Consists of:
Readonly validTODO: finish documentation An Array of
Readonly validReadonly validReadonly validReadonly validAn Array of valid FieldsObjects created from:+
Readonly validIDsHand-picked examples of valid Fields#ids.
Readonly validAn Array of valid MistakeObjects created from the mistakesFile.
Readonly validAn Array of valid Mistakes created from the mistakesFile.
Readonly validAn Array of valid Fields created from the JSON files in validMocksPath.
Readonly validAn Array of valid FieldsObjects created from the objects from the hand-picked JSON files in validMocksPath.
Readonly validHand-picked examples of valid Mistake#names.
Readonly validHand-picked examples of valid GrammleID#numbers.
Readonly validHand-picked examples of valid Fields#orderIDs.
Hand-picked examples of valid RegExps.
Readonly validUIDsHand-picked examples of valid Fields#uids.
Private generateConverts an instance of FieldsObject to Fields. Does NOT check if the fields are valid.
the converted fields object
the fields object to convert
Private generatePrivate generatePrivate generateGenerates invalid FieldsObjects from all invalidIDs and adds them to #invalidFieldsJSONobjects.
true
Private generateGenerates invalid FieldsObjects from all invalidUIDs and adds them to #invalidFieldsJSONobjects.
true
Private generateGenerates invalid Mistake JSONObjects from all invalidFieldsJSONobjects and adds them to #invalidMistakesJSONobjects.
true
Private generateGenerates 100 random GrammleIDs as well as corresponding ID names, ID numbers, order IDs and categories. They're added to their respective arrays, i.e.
true
Private getPrivate loadLoads all invalid JSONObjects from the mock/fields/invalid directory and adds them to #invalidFieldsJSONobjects.
true
Private loadPrivate
Adds all Fields#aliases that aren't undefined of the validMistakes to
validAliasesWithIDandUID and adds all Fields#aliases except the first two elements to
validAliasesWithoutIDandUID.
Private loadLoads all valid FieldsObjects from the mock/fields/valid directory and adds them to #validFieldsObjects.
true
Private loadLoads the Mistakes from the mistakesFile and adds them
It also adds each RegExp in Fields#wrongs to #validRegExes.
true
Generated using TypeDoc
Provides a set of test values for use in unit tests.