Fix npm testing

This commit is contained in:
RainLoop Team 2016-07-01 02:16:35 +03:00
parent 5c2ea2ccda
commit b43bb17cdb
6 changed files with 34 additions and 26 deletions

View file

@ -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
View file

@ -0,0 +1,3 @@
{
"files.eol": "\n"
}

View file

@ -1,7 +1,7 @@
.popups { .popups {
.b-folder-clear-content { .b-folder-clear-content {
.modal-header { .modal-header {
background-color: #fff; background-color: #fff;
} }
} }
} }

View file

@ -1,7 +1,7 @@
.popups { .popups {
.b-folder-create-content { .b-folder-create-content {
.modal-header { .modal-header {
background-color: #fff; background-color: #fff;
} }
} }
} }

View file

@ -1,7 +1,7 @@
.popups { .popups {
.b-folder-system-content { .b-folder-system-content {
.modal-header { .modal-header {
background-color: #fff; background-color: #fff;
} }
} }
} }

View file

@ -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);
} }
} }