mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Fix npm testing
This commit is contained in:
parent
5c2ea2ccda
commit
b43bb17cdb
6 changed files with 34 additions and 26 deletions
|
|
@ -157,7 +157,7 @@ module.exports = {
|
||||||
}],
|
}],
|
||||||
|
|
||||||
"key-spacing": 2, // enforce consistent spacing between keys and values in object literal properties
|
"key-spacing": 2, // enforce consistent spacing between keys and values in object literal properties
|
||||||
"linebreak-style": [2, "windows"], // enforce consistent linebreak style
|
"linebreak-style": [2, "unix"], // enforce consistent linebreak style
|
||||||
// "lines-around-comment": 2, // require empty lines around comments
|
// "lines-around-comment": 2, // require empty lines around comments
|
||||||
// "max-depth": 2, // enforce a maximum depth that blocks can be nested
|
// "max-depth": 2, // enforce a maximum depth that blocks can be nested
|
||||||
"max-len": [2, 200], // enforce a maximum line length
|
"max-len": [2, 200], // enforce a maximum line length
|
||||||
|
|
|
||||||
3
.vscode/settings.json
vendored
Normal file
3
.vscode/settings.json
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"files.eol": "\n"
|
||||||
|
}
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
.popups {
|
.popups {
|
||||||
.b-folder-clear-content {
|
.b-folder-clear-content {
|
||||||
.modal-header {
|
.modal-header {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
.popups {
|
.popups {
|
||||||
.b-folder-create-content {
|
.b-folder-create-content {
|
||||||
.modal-header {
|
.modal-header {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
.popups {
|
.popups {
|
||||||
.b-folder-system-content {
|
.b-folder-system-content {
|
||||||
.modal-header {
|
.modal-header {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7,11 +7,16 @@ class NpmTest extends \PHPUnit_Framework_TestCase
|
||||||
public function testJsValidate()
|
public function testJsValidate()
|
||||||
{
|
{
|
||||||
$out = array();
|
$out = array();
|
||||||
exec('gulp js:eslint', $out);
|
exec('gulp js:validate', $out);
|
||||||
|
|
||||||
var_dump($out);
|
|
||||||
|
|
||||||
$this->assertTrue(0 < \count($out));
|
$this->assertTrue(0 < \count($out));
|
||||||
$this->assertTrue(false === \strpos(\implode('|', $out), 'problem'));
|
|
||||||
|
$noProblem = false === \strpos(\implode('|', $out), 'problem');
|
||||||
|
if (!$noProblem)
|
||||||
|
{
|
||||||
|
var_dump($out);
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->assertTrue($noProblem);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue