fix ordering e2e failing test (#4825)

* ordering fix use common method in datatable

* ordering fix use common method in datatable

* fix sorting ps e2e

* fix ordering

* move search page in testing and fix sorting boolean flag

* fix import

* fix moment

* use common sort method in document list test

* use common sort method in document list test

* remove unnecesary sort control

* remove duplicate test

* remove e2e suspended removed status

* documentation
This commit is contained in:
Eugenio Romano
2019-06-11 07:34:16 +01:00
committed by GitHub
parent c85df84a01
commit 990fa4625b
43 changed files with 951 additions and 477 deletions

32
lib/cli/bin/doc/audit.js Executable file
View File

@@ -0,0 +1,32 @@
#!/usr/bin/env node
var shell = require('shelljs');
var cmd = "npm audit --json";
var ejs = require('ejs');
var path = require('path');
var fs = require('fs');
var templatePath = path.resolve(__dirname, 'templates', 'auditPage.ejs');
try {
var jsonAudit = shell.exec(cmd, {silent:true});
} catch(err) {
console.error('error'+ err);
}
var packageJson = JSON.parse(fs.readFileSync(path.resolve('./','package.json')));
ejs.renderFile(templatePath, {
jsonAudit: JSON.parse(jsonAudit),
projVersion: packageJson.version,
projName: packageJson.description
}, {}, (err, mdText) => {
if (err) {
console.log(err);
} else {
fs.writeFileSync(`audit-info-${packageJson.version}.md`, mdText);
console.log(`Wrote Audit`);
}
});