mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
test: cloudcmd: server
This commit is contained in:
parent
f9b3844153
commit
1d983e9950
3 changed files with 4 additions and 5 deletions
|
|
@ -2,7 +2,6 @@ import process from 'node:process';
|
||||||
import {run, cutEnv} from 'madrun';
|
import {run, cutEnv} from 'madrun';
|
||||||
|
|
||||||
const testEnv = {
|
const testEnv = {
|
||||||
THREAD_IT_COUNT: 0,
|
|
||||||
SUPERTAPE_TIMEOUT: 7000,
|
SUPERTAPE_TIMEOUT: 7000,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ test('columns: dev', (t) => {
|
||||||
|
|
||||||
const css = fs.readFileSync(`${__dirname}/../css/columns/name-size-date.css`, 'utf8');
|
const css = fs.readFileSync(`${__dirname}/../css/columns/name-size-date.css`, 'utf8');
|
||||||
|
|
||||||
t.equal(columns['name-size-date'], css);
|
t.ok(columns['name-size-date'].includes(css));
|
||||||
t.end();
|
t.end();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -35,6 +35,6 @@ test('columns: no args', (t) => {
|
||||||
const css = fs.readFileSync(`${__dirname}/../css/columns/name-size-date.css`, 'utf8');
|
const css = fs.readFileSync(`${__dirname}/../css/columns/name-size-date.css`, 'utf8');
|
||||||
isDev(currentIsDev);
|
isDev(currentIsDev);
|
||||||
|
|
||||||
t.equal(columns['name-size-date'], css);
|
t.ok(columns['name-size-date'].includes(css));
|
||||||
t.end();
|
t.end();
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ test('themes: dev', (t) => {
|
||||||
|
|
||||||
const css = fs.readFileSync(`${__dirname}/../css/themes/dark.css`, 'utf8');
|
const css = fs.readFileSync(`${__dirname}/../css/themes/dark.css`, 'utf8');
|
||||||
|
|
||||||
t.equal(themes.dark, css);
|
t.ok(themes.dark.includes(css));
|
||||||
t.end();
|
t.end();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -26,6 +26,6 @@ test('themes: no args', (t) => {
|
||||||
const css = fs.readFileSync(`${__dirname}/../css/themes/light.css`, 'utf8');
|
const css = fs.readFileSync(`${__dirname}/../css/themes/light.css`, 'utf8');
|
||||||
isDev(currentIsDev);
|
isDev(currentIsDev);
|
||||||
|
|
||||||
t.equal(themes.light, css);
|
t.ok(themes.light.includes(css));
|
||||||
t.end();
|
t.end();
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue