Home Manual Reference Source Test Repository

Test

Description Identifier Count

does not call update

-

has not called any middleware functions

-

has not called any lifecycle functions

-

creates expected instances

-

calls every middleware function

-

calls every middleware function in the expected order

-

willUpdate is called before didUpdate

-

didUpdate is called before the first middleware

-

willBuild is not called

-

didBuild is not called

-

has the same number of files generated

-

builds site correctly

-

last middleware is called before willBuild

-

willBuild is called before didBuild

-

throws when no collection name is given

-

accepts a name and no config object

-

returns if a file in collection is filtered

-

sorts integer value descending

-

sorts integer value ascending

-

sorts date value descending

-

sorts date value ascending

-

creates the right Collection class

-

throws an error if it doesn't get expected values

-

creates a unique id

-

saves passed in values

-

is false if file's path is not within collection's path

-

is true if file's path includes collection's path

-

is false if file's path is excluded from collection

-

adds files to collection

-

does not add files to collection

-

adds files to collectionPages

-

returns early if no pagination permalinks are set

-

can set exclude paths

-

does not add its own path to the exclude path array

-

is false when FileSystemCollection has no path

-

is false when FileSystemCollection has metadata

-

is false when no excludePaths are set

-

is true if the file path is contained in our excludePaths

-

is false if the file path is not in our excludePaths

-

is false if file does not have collection's metadata key

-

is true if file has collection's metadata key

-

adds files to collection

-

does not add files to collection

-

returns early if no pagination permalinks are set

-

adds files to collectionPages

-

can create an instance

-

can load a config file that exports a function

-

calculates paths correctly

-

throws when given an invalid config object

-

sorts file defaults in correct precedence order

-

coerces middleware and lifecycle config values to arrays

-

coerces asset test values to functions

-

ensures asset.use value is a function

-

correctly tests against different file paths

-

returns empty object when no data objects found

-

works

-

has all proper values on its data object

-

can create an instance

-

calculates destination path

-

applies default values that match

-

allows custom file url property

-

set correctly

-

should default to use date as key value

-

should allow setting of what date key to use

-

isFileFiltered

-

should return true when a match is found

-

should return false when a match is not found

-

returns the entire object

-

returns the object at a path

-

correctly takes a string and produces a json object

-

correctly takes json object and produces a string

-

empty string

-

undefined

-

proper yaml string

-

handles simple interpolations

-

handles duplicate param interpolations

-

handles permalink with no interpolation

-

throw if it can't find value to interpolate in permalink

-

handles special date permalink values

-

replaces known markdown extensions

-

appends index.html to a url that has no file extension

-

does not append index.html to a url that does not need it

-

works

-