1 | const assert = require('assert')
|
2 | const ensurePath = require('../../src/ensure-path')
|
3 | const erase = require('../../src/erase')
|
4 | const wrote = require('../../src/index')
|
5 | const read = require('../../src/read')
|
6 | const readDir = require('../../src/read-dir')
|
7 | const write = require('../../src/write')
|
8 |
|
9 | const readDirStructure = require('../../src/read-dir-structure')
|
10 | const api = require('../../')
|
11 |
|
12 | const apiTestSuite = {
|
13 | '0.1.0 should export wrote': () => {
|
14 | assert.strictEqual(api, wrote)
|
15 | },
|
16 | '0.2.0 should export erase': () => {
|
17 | assert.strictEqual(api.erase, erase)
|
18 | },
|
19 | '0.3.0 should export write': () => {
|
20 | assert.strictEqual(api.write, write)
|
21 | },
|
22 | '0.4.0 should export ensurePath': () => {
|
23 | assert.strictEqual(api.ensurePath, ensurePath)
|
24 | },
|
25 | '0.5.0 should export read': () => {
|
26 | assert.strictEqual(api.read, read)
|
27 | },
|
28 | '0.6.0 should export readDir': () => {
|
29 | assert.strictEqual(api.readDir, readDir)
|
30 | },
|
31 | '0.7.0 should export readDirStructure': () => {
|
32 | assert.strictEqual(api.readDirStructure, readDirStructure)
|
33 |
|
34 | },
|
35 | }
|
36 |
|
37 | module.exports = apiTestSuite
|