1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-12 10:55:20 +02:00
sap-jenkins-library/cmd/npmExecuteLint_generated_test.go
Kevin Hudemann 60fa1d5bbf
Add Java-/Typescript linting capabilities (#1636)
This change adds linting support for Java-/TypeScript projects based on the checkDefaultLint and checkUserLint steps from Cloud SDK Pipeline.

Following options are supported:

1. Define a linting script named ci-lint in the package.json file(s) of the project
2. Provide a configuration for ESLint as part of the project
3. If none of the above: ESLint is executed with a general purpose configuration.

Co-authored-by: Daniel Kurzynski <daniel.kurzynski@sap.com>
2020-06-22 10:12:28 +02:00

17 lines
325 B
Go

package cmd
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestNpmExecuteLintCommand(t *testing.T) {
testCmd := NpmExecuteLintCommand()
// only high level testing performed - details are tested in step generation procudure
assert.Equal(t, "npmExecuteLint", testCmd.Use, "command name incorrect")
}