mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
test(route) file: fs
This commit is contained in:
parent
132bfc5d05
commit
1005690acb
1 changed files with 16 additions and 0 deletions
|
|
@ -196,6 +196,22 @@ test('cloudcmd: route: file', (t) => {
|
|||
});
|
||||
});
|
||||
|
||||
test('cloudcmd: route: file: fs', (t) => {
|
||||
const root = path.join(__dirname, '..', 'fixture', 'empty-file');
|
||||
const config = {
|
||||
root,
|
||||
};
|
||||
|
||||
before({config}, (port, after) => {
|
||||
getStr(`http://localhost:${port}/fs`)
|
||||
.then((empty) => {
|
||||
t.equal(empty, '', 'should equal');
|
||||
t.end();
|
||||
after();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
test('cloudcmd: route: symlink', (t) => {
|
||||
const emptyDir = path.join(__dirname, '..', 'fixture', 'empty-dir');
|
||||
const root = path.join(__dirname, '..', 'fixture');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue