Test Report

Started: 2023-09-16 16:51:18
Suites (13)
13 passed
0 failed
0 pending
Tests (255)
251 passed
0 failed
0 pending
Class PostParse, init instance
PostParse Ctor param, provide right param include markdownText exclude filepath
passed
0.002s
Class PostParse, init instance
PostParse Ctor param, provide right param include filepath exclude markdownText
passed
0.013s
Class PostParse, init instance
PostParse Ctor param, provide nothing will emit err
passed
0.001s
Class PostParse, init instance
PostParse Ctor param, init with {}, it will emit err
passed
0.001s
Class PostParse, init instance
PostParse Ctor param, init with only conf, it will emit err
passed
0s
Class PostParse, init instance
PostParse Ctor param, init with empty conf, it will emit err
passed
0s
Class PostParse, init instance
PostParse Ctor param, init with empty str of conf.link_prefix, it will emit err
passed
0s
Class PostParse, init instance
PostParse Ctor param, init with non-str of conf.link_prefix, it will emit err
passed
0.001s
Class PostParse, init instance
PostParse Ctor param, init with empty-str of conf.absolute_source_dir, it will emit err
passed
0s
Class PostParse, init instance
PostParse Ctor param, init with non-str of conf.absolute_source_dir, it will emit err
passed
0s
Class PostParse, init instance
PostParse Ctor param, init with undefined of conf.types, it will use def types and pass
passed
0.022s
Class PostParse, init instance
PostParse Ctor param, init with non-array of conf.types, it will emit err
passed
0.001s
Class PostParse, init instance
PostParse Ctor param, init with empty-array of conf.types, it will use def types and pass
passed
0.016s
Class PostParse, init instance
PostParse Ctor param, init with conf.types include non-enumLinkType item, that item will be delate and pass
passed
0.011s
Class PostParse, init instance
PostParse Ctor param, init with conf.types filling non-enumLinkType item, it will use def types and pass
passed
0.012s
Class PostParse, init instance
PostParse Ctor param, init with not exist post path, it will emit err
passed
0.001s
Class PostParse, init instance
PostParse Ctor param, init with non-string markdownText, it will emit err
passed
0s
Class PostParse, init instance
PostParse Ctor param, init with markdownText, conf.disable_asset_find will be set to true aumaticaly
passed
0.002s
Class PostParse, method test
use path to get frontmatter:all props:
passed
0.002s
Class PostParse, method test
input marddown text to get frontmatter:all props:
passed
0.001s
Class PostParse, method test
use inputMarkdownText to get ast
passed
0.002s
Class PostParse, method test
method:getInputMarkdown
passed
0.008s
Class PostParse, method test
getFormatedMarkdown, invoked with empty
passed
0.063s
Class PostParse, method test
getFormatedMarkdown, invoked with empty-object ast
passed
0.001s
Class PostParse, method test
getFormatedMarkdown, invoked with hide_frontmatter=true
passed
0.003s
Class PostParse, method test
test formated en image link
passed
0.004s
Class PostParse, method test
test formated cn image link
passed
0.004s
Class PostParse, method test
test formated cn(uriencode) image link
passed
0.003s
Class PostParse, method test
detect asset paths of a post
passed
0.028s
Class PostParse, method test
empty parse conf
passed
0.018s
Class PostParse, method test
parse md file without yml data
passed
0.086s
Class PostParse, method test
inject yml data to md file without yml data
passed
0.059s
Class PostParse, method test
get ast from empty md file, rootAst.children will be a empty Array
passed
0.002s
Class PostParse, method test
get formated mdtxt from empty md file
passed
0.002s
Class PostParse, method test
get frontmatter from empty md file
passed
0.001s
Class PostParse, method test
get hidden frontmatter formatedMarkdown
passed
0.036s
Class PostParse, method test
parse invalid asset link
passed
0.003s
Class AssetPublisher, init instance
AssetPublisher ctor param, init with undefined, it will emit err
passed
0.002s
Class AssetPublisher, init instance
AssetPublisher ctor param, init with {}, it will emit err
passed
0s
Class AssetPublisher, init instance
AssetPublisher ctor param, init with { assetRecords: {} }, it will emit err
passed
0.002s
Class AssetPublisher, init instance
AssetPublisher ctor param, init with { assetRecords: [{}] }, it will emit err
passed
0.001s
Class AssetPublisher, init instance
AssetPublisher ctor param, init with { assetRecords: [{ postpath: 1 }] }, it will emit err
passed
0s
Class AssetPublisher, init instance
AssetPublisher ctor param, init with { assetRecords: [{postpath: '/temp.md'}] }, it will emit err
passed
0.001s
Class AssetPublisher, init instance
AssetPublisher ctor param, init with { assetRecords: [{postpath: '/temp.md', assetpaths: {}}] }, it will emit err
passed
0.001s
Class AssetPublisher, init instance
AssetPublisher ctor param, init with { assetRecords: [{postpath: '/temp.md', assetpaths: ['']}] }, it will emit err
passed
0.002s
Class AssetPublisher, init instance
AssetPublisher ctor param, init with { assetRecords: [] }, it will pass
passed
0.001s
Class AssetPublisher, init instance
AssetPublisher ctor param, init with { assetRecords: [{postpath: '/temp.md', assetpaths: []}] }, it will be passed
passed
0.001s
Class AssetPublisher, init instance
init with simpleGitOpt that non-data-object
passed
0.001s
Class AssetPublisher, init instance
init with simpleGitOpt that include baseDir
passed
0s
Class AssetPublisher, method test
Without prev staged, push a post and relatived assets
passed
34.855s
Class AssetPublisher, method test
set prev staged, then push a post and relatived assets
passed
38.957s
Class AssetPublisher, method test
set prev staged includes a post will be pushed, then check reset staged after pushed
passed
38.592s
Class AssetPublisher, method test
Revert as err occurred after backup prev staged
passed
5.802s
Class AssetPublisher, method test
Revert as err occurred after commit post and assets
passed
6.332s
Class AssetPublisher, method test
Revert as err occurred before push post and assets or push fail
passed
6.02s
Class AssetPublisher, method test
err occurred when recovering
passed
8.265s
Class AssetPublisher, method test
Revert as err occurred after push post and assets
passed
32.395s
Class AssetPublisher, method test
checkIsUnpushPostAndAssets, exist post and assets unpush
passed
6.713s
Class AssetPublisher, method test
checkIsUnpushPostAndAssets, clear cwd, without assets need to push
passed
5.695s
Class AssetPublisher, method test
checkIsUnpushPostAndAssets, exist staged files
passed
7.416s
Class AssetPublisher, method test
checkIsUnpushPostAndAssets, exist staged and not-added files
passed
7.617s
Class AssetPublisher, method test
push a post that without assets
passed
5.934s
Class AssetPublisher, method test
without
passed
34.172s
Class AssetPublisher, method test
push post and assets timeout
passed
42.667s
Class AssetPublisher, method test
throw err when pushing post and assets
passed
35.451s
Class AssetPublisher, method test
throw err when pushing post and assets, err was emited agaign at resetToStashCommit
passed
31.112s
Class AssetPublisher, method test
throw err when pushing post and assets, err was emited agaign at recoverPrevStaged
passed
32.505s
Class AssetPublisher, method test
Revert as err occurred before set backup branch
passed
32.494s
lib utils
util:requeseQueue
passed
3.012s
lib utils
cov2num, input string natual num
passed
0.003s
lib utils
cov2num, input real num
passed
0.001s
lib utils
cov2num, input num that non-string-num or not real num
passed
0.001s
lib utils
cov2num, input wrong value, retrun def val
passed
0.001s
lib utils
isAsyncFunction
passed
0.001s
lib utils
hintWraper: exec async callback
passed
0.008s
lib utils
hintWraper: throw error when exec callback
passed
0.002s
lib utils
isNonEmptyAbsolutePathItemArray, failed entry
passed
0.003s
lib utils
isNonEmptyAbsolutePathItemArray, passed entry
passed
0.001s
lib utils
isStringArray, failed entry
passed
0.003s
lib utils
isStringArray, passed entry
passed
0.001s
lib utils
isNonEmptyStringItemArray, failed entry
passed
0.003s
lib utils
isNonEmptyStringItemArray, passed entry
passed
0s
lib utils
isDataObject, failed entry
passed
0.002s
lib utils
isDataObject, passed entry
passed
0.001s
lib utils
isAsyncFunction, failed entry
passed
0.002s
lib utils
isAsyncFunction, passed entry
passed
0s
lib utils
isPlainFunction, failed entry
passed
0.001s
lib utils
isPlainFunction, passed entry
passed
0.001s
lib utils
isFunction, failed entry
passed
0.001s
lib utils
isFunction, passed entry
passed
0.001s
lib utils
isUndefined, failed entry
passed
0s
lib utils
isUndefined, passed entry
passed
0s
lib utils
isNull, failed entry
passed
0.001s
lib utils
isNull, passed entry
passed
0s
lib utils
isNullOrUndefined, failed entry
passed
0.001s
lib utils
isNullOrUndefined, passed entry
passed
0s
lib utils
isTruthNaturalNum, failed entry
passed
0s
lib utils
isTruthNaturalNum, passed entry
passed
0s
lib utils
isTruthPositiveInt, failed entry
passed
0.002s
lib utils
isTruthPositiveInt, passed entry
passed
0s
lib utils: defineConstStruct
test
passed
0.059s
Class PostFinder, init instance
init with empty, it will emit err
passed
0.002s
Class PostFinder, init instance
init with wrong-object whithout patterns or sourceDir, it will emit err
passed
0.001s
Class PostFinder, init instance
init with non-array patterns, it will emit err
passed
0.001s
Class PostFinder, init instance
init with empty-array patterns, it will emit err
passed
0.001s
Class PostFinder, init instance
init with array patterns but include empty item, it will emit err
passed
0.001s
Class PostFinder, init instance
init with array patterns but include non-string item, it will emit err
passed
0s
Class PostFinder, init instance
init with array patterns but all invalid item, it will emit err
passed
0.001s
Class PostFinder, init instance
init with non-string sourceDir, it will emit err
passed
0s
Class PostFinder, init instance
init with not-exist sourceDir, it will emit err
passed
0.001s
Class PostFinder, init instance
init with sourceDir and non-string, non-string-array filename , it will emit err
passed
0s
Class PostFinder, init instance
init with sourceDir and empty-array filename , it will emit err
passed
0s
Class PostFinder, init instance
init with sourceDir, filename and undefined postTitleSeat, it will emit err
passed
0s
Class PostFinder, init instance
init with sourceDir, filename and decimal postTitleSeat, it will emit err
passed
0s
Class PostFinder, init instance
init with sourceDir, filename and postTitleSeat of negative number, it will emit err
passed
0s
Class PostFinder, init instance
init with unexpected ext
passed
0.001s
Class PostFinder, init instance
init with right param that source, filename, postTitleSeat, ext
passed
0s
Class PostFinder, init instance
init with right param that patterns
passed
0s
Class PostFinder
glob all matched fileoath
passed
0.006s
Class PostFinder
glob a matched file with sourceDir, filename and ext
passed
0.001s
Class PostFinder
glob a matched file with sourceDir and filename
passed
0.001s
Class PostFinder
glob a matched file with filename include multiple path
passed
0.002s
Class PostFinder
glob a matched file with filename include multiple path and ext
passed
0.005s
Class PostFinder
glob a matched file with only sourceDir
passed
0.002s
Class PostFinder
find with serveral filenames
passed
0.001s
Class PostFinder
init PostFinder with patterns
passed
0.002s
Class PostFinder
init PostFinder with err ext
passed
0s
Class PostFinder
find with filename and diffence postTitleSeat
passed
0.007s
Class PostFinder
method test, selectpost
passed
0.007s
Class ConfReader init
init with not exist conf path
passed
0.003s
Class ConfReader init
init with non-string or empty string param.path It will emit err
passed
0.003s
Class ConfReader init
init with conf path of wrong ext
passed
0.001s
Class ConfReader method test
read conf
passed
0.004s
Class ConfReader method test
read object link_prefix conf
passed
0.004s
Class ConfReader method test
default link_prefix
passed
0.002s
Class ConfReader method test
format conf, statement branch
passed
0.002s
Class ConfReader method test
format conf, default branch
passed
0.003s
Class ConfReader method test
format conf, statement source_dir
passed
0.002s
Class ConfReader method test
format conf, default source_dir
passed
0.001s
Class ConfReader method test
format conf, default source_dir
passed
0.002s
Class ConfReader method test
format conf, statement link_prefix
passed
0.002s
Class ConfReader method test
format conf, default link_prefix
passed
0.003s
Class ConfReader method test
format conf, statement types
passed
0.002s
Class ConfReader method test
format conf, default types
passed
0.002s
Class ConfReader method test
format conf, statement push_asset
passed
0.002s
Class ConfReader method test
format conf, default push_asset
passed
0.001s
Class ConfReader method test
format conf, wrong push_asset
passed
0.002s
Class ConfReader method test
format conf, statement hide_frontmatter
passed
0.002s
Class ConfReader method test
format conf, default hide_frontmatter
passed
0.001s
Class ConfReader method test
format conf, statement post_title_seat
passed
0.003s
Class ConfReader method test
format conf, wrong post_title_seat
passed
0.002s
Class ConfReader method test
format conf, default post_title_seat
passed
0.001s
Class ConfReader method test
empty owner will emit err
passed
0.001s
Class ConfReader method test
empty repo will emit err
passed
0.001s
Class ConfReader method test
empty token will emit err
passed
0.002s
class MdFrontmatter
parse markdown text to frontmatter data, frontmatter text and markdown content
passed
0.009s
class MdFrontmatter
inject data to frontmatter of a markdown text
passed
0.003s
class MdFrontmatter
inject data to markdown text without frontmatter
passed
0.002s
class MdFrontmatter
Limit frontmatter, preceded by text
passed
0s
class MdFrontmatter
Limit frontmatter, start with non ---
passed
0s
class MdFrontmatter
Limit frontmatter, end with non ---
passed
0.001s
class MdFrontmatter
init with empty err
passed
0.002s
class MdFrontmatter
init with not exit file path err
passed
0s
class MdFrontmatter
get frontmatterTxtWithFence
passed
0.001s
class MdFrontmatter
init with file path err
passed
0.001s
class MdFrontmatter
parse with markdow text without frontmatter
passed
0.001s
class MdFrontmatter
inject non-data
passed
0s
class MdFrontmatter
generate frontmatter with data
passed
0s
class MdFrontmatter
generate frontmatter with non-data, err
passed
0.001s
Class PostManager, instance init
init with empty, it will emit err
passed
0.002s
Class PostManager, instance init
init with empty owner, it will emit err
passed
0s
Class PostManager, instance init
init with non-string owner, it will emit err
passed
0s
Class PostManager, instance init
init with empty repo, it will emit err
passed
0s
Class PostManager, instance init
init with non-string repo, it will emit err
passed
0s
Class PostManager, instance init
init with empty token, it will emit err
passed
0.001s
Class PostManager, instance init
init with non-string token, it will emit err
passed
0.008s
Class PostManager, instance init
init with right data type param, it will pass
passed
0.009s
Class PostManager, method test
force create a issue and then update it
passed
2.153s
Class PostManager, method test
force create a issue and then update it
passed
1.034s
Class PostManager, method test
invoked update method, use empty params that will emit err
passed
0.007s
Class PostManager, method test
invoked forceCreate method, use empty params that will emit err
passed
0.01s
Class PostManager, method test
invoked forceCreate method, use non-object params that will emit err
passed
0.006s
Class PostManager, method test
invoked forceCreate method, use params that non-string title that will emit err
passed
0.005s
Class PostManager, method test
invoked forceCreate method, use params that empty-string title that will emit err
passed
0.005s
Class PostManager, method test
invoked forceCreate method, use params without body that will emit err
passed
0.006s
Class PostManager, method test
invoked forceCreate method, use params that empty-string body that will emit err
passed
0.005s
Class PostManager, method test
invoked forceCreate method, use params that non-string body that will emit err
passed
0.005s
Class PostManager, method test
invoked forceCreate method, use params that non-array labels that will emit err
passed
0.01s
Class PostManager, method test
invoked forceCreate method, use params that non-string-array labels that will emit err
passed
0.005s
Class PostManager, method test
invoked forceCreate method, use params that string-array labels include empty item that will emit err
passed
0.005s
Class PostManager, method test
update fail
todo
0s
Class PostManager, method test
get a post by issue_numer
todo
0s
Class PostManager, method test
check post is exist by issue_number or create one
todo
0s
Class PostManager, method test
update by waste issue_number and create it
todo
0s
Class Isubo, init instance
init with empty It with emit err
passed
0.002s
Class Isubo, init instance
init with undefined conf data It with emit err
passed
0.001s
Class Isubo, init instance
init with non-object or empty-object conf data It with emit err
passed
0.001s
Class Isubo, init instance
init with non-object or empty-object cliParams data It with emit err
passed
0.011s
Class Isubo, method test
create posts, disable push assets
passed
9.644s
Class Isubo, method test
create posts, auto push assets
passed
43.134s
Class Isubo, method test
create posts, prompts to confirm if push assets
passed
45.738s
Class Isubo, method test
create a post but disable push assets
passed
5.782s
Class Isubo, method test
create posts without assets, disable push assets
passed
5.577s
Class Isubo, method test
create posts without assets, auto push assets
passed
6.463s
Class Isubo, method test
create posts without assets, prompts to confirm if push assets
passed
6.721s
Class Isubo, method test
deploy_emit_err_by_hook
passed
0.061s
Class Isubo, method test
update one post
passed
1.126s
Class Isubo, method test
publish posts, according post's issue_number
passed
2.161s
Class Isubo, method test
write to clipboard
passed
5.424s
Class PostPathParse, method test
parse before init, it will emit err
passed
0.002s
Class PostPathParse, method test
parse post title with conf.post_title_seat
passed
0.012s
Class PostPathParse, method test
setConfBy non-object It will emit err
passed
0.002s
Class PostPathParse, method test
setConfBy object but without conf or confpath It will emit err
passed
0s
Class PostPathParse, method test
setConfBy conf non-object It will emit err
passed
0.002s
Class PostPathParse, method test
setConfBy confpath non-empty-string It will emit err
passed
0.002s
Class PostPathParse, method test
setConfBy confpath not exist It will emit err
passed
0s
Class PostPathParse, method test
init non-object It will emit err
passed
0.002s
Class PostPathParse, method test
setConfBy and init right data that conf or confpath, it will be passed
passed
0.002s
Util:Custom Error
Instantiate IsuboError with non-object metadata, it will emit error
passed
0.001s
Util:Custom Error
Instantiate IsuboError with empty-object metadata, it will emit error
passed
0s
Util:Custom Error
Instantiate IsuboError, right errMsg and metadata
passed
0.009s
Util:Custom Error
Instantiate CtorParamDataObjectError, right errMsg and metadata
passed
0.006s
Util:Custom Error
Instantiate DataObjectError, right errMsg and metadata
passed
0.001s
Util:Custom Error
Instantiate AtLeastPropError, right errMsg and metadata
passed
0.001s
Util:Custom Error
Instantiate NonEmptyStringError, right errMsg and metadata
passed
0.001s
Util:Custom Error
Instantiate StringArrayError, right errMsg and metadata
passed
0.001s
Util:Custom Error
Instantiate NonEmptyStringItemArrayError, right errMsg and metadata
passed
0.001s
Util:Custom Error
Instantiate FileNotExistError, right errMsg and metadata
passed
0.002s
Util:Custom Error
Instantiate DirNotExistError, right errMsg and metadata
passed
0.001s
Util:Custom Error
Instantiate TruthPositiveIntError, right errMsg and metadata
passed
0.002s
Util:Custom Error
Instantiate TruthNaturalNumError, right errMsg and metadata
passed
0.001s
Util:Custom Error
Instantiate InvalidPatternListError, right errMsg and metadata
passed
0.001s
Util:Custom Error
Instantiate NonEmptyError, right errMsg and metadata
passed
0.001s
Util:Custom Error
Instantiate NonEmptyStringOrNonEmptyStringItemArrayError, right errMsg and metadata
passed
0.001s
Class AssetFinder
multi-level search for resources
passed
0.026s
Class AssetFinder
parse a md file, and find non-relative path asset
passed
0.079s
Class AssetFinder
asset is outside the source_dir
passed
0.004s
Class AssetFinder
AssetFinder ctor param, init with undefined will emit err
passed
0.001s
Class AssetFinder
AssetFinder ctor param, init with empty object will emit err
passed
0s
Class AssetFinder
AssetFinder ctor param, init with empty str for param.postpath will emit err
passed
0.002s
Class AssetFinder
AssetFinder ctor param, init with not exist path for param.postpath will emit err
passed
0.001s
Class AssetFinder
AssetFinder ctor param, init with not exist path for param.postpath will emit err
passed
0.001s
Class AssetFinder
AssetFinder ctor param, init with not exist path for param.postpath will emit err
passed
0.001s
Class AssetFinder
AssetFinder ctor param, init with not-exist sourceDirPath
passed
0.001s
Class AssetFinder
AssetFinder ctor param, init with right param object
passed
0.001s
Class LinkFormater
add url link_prefix for relative src
passed
0.002s
Class LinkFormater
add url link_prefix(without schema) for relative src
passed
0s
Class LinkFormater
test full url
passed
0s
Class LinkFormater
init with empty src, it will pass, but parse to ''
passed
0.001s
Class LinkFormater
init with non-empty but non-string, it will emit err
passed
0.001s
Class LinkFormater
init with conf, conf.url_prefix is non-string or empty-string.It will emit err
passed
0.001s
Class Isubo
create posts by select posts, disable push assets
passed
12.887s
Class Isubo
publish but no selects
passed
1.013s
Class Isubo
update but no selects
passed
1.01s
Class Isubo
create but no selects
passed
1.01s