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
|
||||
"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
|
||||
// "max-depth": 2, // enforce a maximum depth that blocks can be nested
|
||||
"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"
|
||||
}
|
||||
|
|
@ -7,11 +7,16 @@ class NpmTest extends \PHPUnit_Framework_TestCase
|
|||
public function testJsValidate()
|
||||
{
|
||||
$out = array();
|
||||
exec('gulp js:eslint', $out);
|
||||
|
||||
var_dump($out);
|
||||
exec('gulp js:validate', $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