UNPKG

1.23 kBJavaScriptView Raw
1const assert = require('assert')
2const ensurePath = require('../../src/ensure-path')
3const erase = require('../../src/erase')
4const wrote = require('../../src/index')
5const read = require('../../src/read')
6const readDir = require('../../src/read-dir')
7const write = require('../../src/write')
8// const rsync = require('../../src/rsync')
9const readDirStructure = require('../../src/read-dir-structure')
10const api = require('../../')
11
12const 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 // assert.strictEqual(api.rmrf, rmrf)
34 },
35}
36
37module.exports = apiTestSuite