test-fixture
Advanced tools
Comparing version 2.4.0 to 2.4.1
{ | ||
"name": "test-fixture", | ||
"version": "2.4.0", | ||
"version": "2.4.1", | ||
"description": "Copy test-fixtures to temp dir and get resolved file paths.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -53,6 +53,6 @@ [![Build Status](https://travis-ci.org/kaelzhang/node-test-fixture.svg?branch=master)](https://travis-ci.org/kaelzhang/node-test-fixture) | ||
path.resolve(fixturesRoot, ...args) | ||
path.resolve(fixturesRoot, ...paths) | ||
``` | ||
`arguments` | `base`(dir of test fixtures) | ||
`...paths` | `base`(dir of test fixtures) | ||
--------- | -------------------- | ||
@@ -65,3 +65,3 @@ `undefined` | `test/fixtures` | ||
Actually, the `base` is `path.resolve('text/fixtures', path...)` | ||
Actually, the `base` is `path.resolve('text/fixtures', ...paths)` | ||
@@ -71,4 +71,4 @@ #### Without copying | ||
```js | ||
const {resolve} = fixtures(base) | ||
resolve('a.js') // -> /path/to/<base>/a.js | ||
const {resolve} = fixtures(p) | ||
resolve('a.js') // -> /path/to/<p>/a.js | ||
``` | ||
@@ -79,3 +79,3 @@ | ||
```js | ||
const {copy, resolve} = fixtures(base) | ||
const {copy, resolve} = fixtures(p) | ||
@@ -122,3 +122,3 @@ await copy('/path/to') | ||
### install(options?) | ||
### await install(options?) | ||
@@ -125,0 +125,0 @@ - **options?** `Object` options of [`npminstall`](https://npmjs.org/package/npminstall) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7182