Skip to content

Commit

Permalink
Fix spec tests after making method static
Browse files Browse the repository at this point in the history
  • Loading branch information
davide-pi committed Sep 11, 2024
1 parent 5eb6985 commit bc2df08
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion services/snapcraft/snapcraft-licence.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ describe('SnapcraftLicense', function () {
},
}

test(SnapcraftLicense.prototype.transform, () => {
test(SnapcraftLicense.transform, () => {
given(testApiData).expect('BSD-3-Clause')
})
})
8 changes: 4 additions & 4 deletions services/snapcraft/snapcraft-version.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ describe('SnapcraftVersion', function () {
],
}

test(SnapcraftVersion.prototype.transform, () => {
test(SnapcraftVersion.transform, () => {
given(
testApiData,
exampleChannel.channel.track,
Expand Down Expand Up @@ -66,7 +66,7 @@ describe('SnapcraftVersion', function () {

it('throws NotFound error with missing arch', function () {
expect(() => {
SnapcraftVersion.prototype.transform(
SnapcraftVersion.transform(
testApiData,
exampleChannel.channel.track,
exampleChannel.channel.risk,
Expand All @@ -78,7 +78,7 @@ describe('SnapcraftVersion', function () {
})
it('throws NotFound error with missing track', function () {
expect(() => {
SnapcraftVersion.prototype.transform(
SnapcraftVersion.transform(
testApiData,
'missing',
exampleChannel.channel.risk,
Expand All @@ -90,7 +90,7 @@ describe('SnapcraftVersion', function () {
})
it('throws NotFound error with missing risk', function () {
expect(() => {
SnapcraftVersion.prototype.transform(
SnapcraftVersion.transform(
testApiData,
exampleChannel.channel.track,
'missing',
Expand Down

0 comments on commit bc2df08

Please sign in to comment.