Skip to content

Commit c06a63e

Browse files
Fixed duplicated npm command in run task
Signed-off-by: Bastian Schwarz <bastian@codename-php.de>
1 parent b4e3194 commit c06a63e

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/task/run/AbstractRunTask.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ public function getNpmCommand() : string {
2828
}
2929

3030
public function getArguments() : array {
31-
return [$this->getNpmCommand(), $this->getScriptName(), ...parent::getArguments()];
31+
return [$this->getScriptName(), ...parent::getArguments()];
3232
}
3333
}

test/task/run/AbstractRunTaskTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ public function testGetNpmCommand() : void {
5353
public function testGetArguments() : void {
5454
$arguments = $this->sut->getArguments();
5555

56-
self::assertContains($this->sut->getNpmCommand(), $arguments);
5756
self::assertContainsOnly('string', $arguments);
58-
self::assertGreaterThan(3, count($arguments));
57+
self::assertGreaterThan(2, count($arguments));
5958
}
6059
}

0 commit comments

Comments
 (0)