mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 13:09:21 +03:00
Fix npm testing
This commit is contained in:
parent
5c2ea2ccda
commit
b43bb17cdb
6 changed files with 34 additions and 26 deletions
|
|
@ -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