Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Jenkinsfile.library
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@Library('shared-library') _
@Library('shared-library@sonar-for-sdk') _


def pipelineConfig = [
"JSpublicLibrary": "true",
Expand Down
19 changes: 19 additions & 0 deletions packages/sdk/test/test-class.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { sum2 } from "./test-class1"

describe("sum", () => {
it("should return the sum of two positive numbers", () => {
expect(sum2(1, 2)).toBe(3)
})

it("should return the sum of two negative numbers", () => {
expect(sum2(-1, -2)).toBe(-3)
})

it("should return the sum of a positive and a negative number", () => {
expect(sum2(1, -2)).toBe(-1)
})

it("should return the sum of zero and a number", () => {
expect(sum2(0, 5)).toBe(5)
})
})
3 changes: 3 additions & 0 deletions packages/sdk/test/test-class1.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export function sum2(a: number, c: number) {
return a + c
}
3 changes: 3 additions & 0 deletions packages/solana-sdk/src/sdk/test-class.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export function sum1(a: number, c: number) {
return a + c
}