forked from alanmastro/ftpm-module
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtests.js
More file actions
53 lines (47 loc) · 1.63 KB
/
tests.js
File metadata and controls
53 lines (47 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
var ftpm_module = require('ftpm-node');
var async = require('async');
async.series([function (callback) {
ftpm_module.installOsFont('Magra', function (err) {
if (err)console.log("installOsFont: error: " + err);
else console.log("installOsFont: passed");
callback();
});
},
function (callback) {
ftpm_module.installOsFont('verdana', function (err) {
if (err)console.log("installOsFont: passed");
else console.log("installOsFont: error: " + err);
callback();
});
},
function (callback) {
ftpm_module.uninstallOsFont('Magra', function (err) {
if (err)console.log("uninstallOsFont: error: " + err);
else console.log("uninstallOsFont: passed");
callback();
});
},
function (callback) {
ftpm_module.listIntalledFonts(function (err, files) {
if (err)console.log("listIntalledFonts:error: " + err);
else console.log("listIntalledFonts: passed");
callback();
});
},
function (callback) {
ftpm_module.downloadWebFont('Magra', '/root/.fonts', function (err) {
if (err)console.log("downloadWebFont: error: " + err);
else console.log("downloadWebFont: passed");
callback();
});
},
function (callback) {
ftpm_module.getCssFont('Magra', '/root/.fonts', function (err) {
if (err)console.log("getCssFont: error: " + err);
else console.log("getCssFont: passed");
callback();
});
}
],function(){
console.log("tests finished executing");
});