Skip to content

Latest commit

 

History

History
124 lines (78 loc) · 3.23 KB

test_fixture.md

File metadata and controls

124 lines (78 loc) · 3.23 KB

dbcp / Exports / test.fixture

Module: test.fixture

Table of contents

Functions

Functions

dbcpHashFile

dbcpHashFile(fileSystem: FileSystem, path: string): Promise<string>

Parameters

Name Type
fileSystem FileSystem
path string

Returns: Promise<string>

Defined in: test.fixture.ts:76


execCommand

execCommand(cmd: string, execOptions?: any): Promise<string>

Parameters

Name Type Default value
cmd string -
execOptions any {}

Returns: Promise<string>

Defined in: test.fixture.ts:87


expectCreateFileWithConvertHash

expectCreateFileWithConvertHash(fileSystem: FileSystem, targetUrl: string, convertToUrl: string, convertToHash: string, fn: () => Promise<void>, convertToTransform?: (x: any) => any): Promise<void>

Parameters

Name Type
fileSystem FileSystem
targetUrl string
convertToUrl string
convertToHash string
fn () => Promise<void>
convertToTransform (x: any) => any

Returns: Promise<void>

Defined in: test.fixture.ts:10


expectCreateFileWithHash

expectCreateFileWithHash(fileSystem: FileSystem, fileUrl: string, fileHash: string | undefined, fn: () => Promise<void>): Promise<void>

Parameters

Name Type
fileSystem FileSystem
fileUrl string
fileHash string | undefined
fn () => Promise<void>

Returns: Promise<void>

Defined in: test.fixture.ts:57


expectCreateFilesWithHashes

expectCreateFilesWithHashes(fileSystem: FileSystem, fileUrl: string[], fileHash: string[] | undefined, fn: () => Promise<void>): Promise<void>

Parameters

Name Type
fileSystem FileSystem
fileUrl string[]
fileHash string[] | undefined
fn () => Promise<void>

Returns: Promise<void>

Defined in: test.fixture.ts:40


hashFile

hashFile(fileSystem: FileSystem, path: string): Promise<string>

Parameters

Name Type
fileSystem FileSystem
path string

Returns: Promise<string>

Defined in: test.fixture.ts:70