Add npm tests

This commit is contained in:
RainLoop Team 2016-05-24 22:27:11 +03:00
parent d64b6388ae
commit f7d5ae94c2
2 changed files with 20 additions and 0 deletions

15
tests/Common/NpmTest.php Normal file
View file

@ -0,0 +1,15 @@
<?php
namespace CommonTests;
class NpmTest extends \PHPUnit_Framework_TestCase
{
public function testJsValidate()
{
$out = array();
exec('gulp js:validate', $out);
$this->assertTrue(0 < \count($out));
$this->assertTrue(false === \strpos(\implode('|', $out), 'problem'));
}
}