Home Reference Source Test

Variable

Static Public Summary
public

BOOLEAN: {"type": *, "toBe": *}

This object combines all validation functions related to booleans

public

NUMBER: {"min": *, "max": *, "equal": *, "type": *}

This object combines all validation functions related to numbers

public

STRING: {"minLength": *, "maxLength": *, "equal": *, "match": *, "notEmpty": *, "type": *}

This object combines all validation functions related to strings

public

TEST_FUNCTIONS: {...types: Object}

public

Regex that validates if a string is a valid url

public

array: {"of": *, "notEmpty": *, "length": *, "type": *}

public

boolean: {...BOOLEAN: Object}

public

date: {"after": *, "before": *, "between": *, "equal": *, "type": *}

public

email: {...STRING: Object, "type": *, "user": *, "domain": *}

public

float: {...NUMBER: Object, "type": *}

public

fn: {"type": *, "result": *}

public

int: {...NUMBER: Object, "type": *}

public

number: {...NUMBER: Object}

public

password: {...STRING: Object, "numbers": *, "uppercase": *, "specialChars": *, "matchesOneOf": *, "matchesAllOf": *}

public

string: {...STRING: Object}

public

url: {...STRING: Object, "type": *, "domain": *, "protocol": *}

Static Public

public BOOLEAN: {"type": *, "toBe": *} source

This object combines all validation functions related to booleans

public NUMBER: {"min": *, "max": *, "equal": *, "type": *} source

This object combines all validation functions related to numbers

public STRING: {"minLength": *, "maxLength": *, "equal": *, "match": *, "notEmpty": *, "type": *} source

This object combines all validation functions related to strings

public TEST_FUNCTIONS: {...types: Object} source

import {TEST_FUNCTIONS} from '@cesium133/forgjs/src/testFunctions/index.js'

public URL_REGEX: undefined source

import {URL_REGEX} from '@cesium133/forgjs/src/util.js'

Regex that validates if a string is a valid url

public array: {"of": *, "notEmpty": *, "length": *, "type": *} source

public boolean: {...BOOLEAN: Object} source

public date: {"after": *, "before": *, "between": *, "equal": *, "type": *} source

public email: {...STRING: Object, "type": *, "user": *, "domain": *} source

public float: {...NUMBER: Object, "type": *} source

public fn: {"type": *, "result": *} source

public int: {...NUMBER: Object, "type": *} source

public number: {...NUMBER: Object} source

public password: {...STRING: Object, "numbers": *, "uppercase": *, "specialChars": *, "matchesOneOf": *, "matchesAllOf": *} source

public string: {...STRING: Object} source

public url: {...STRING: Object, "type": *, "domain": *, "protocol": *} source