Skip to content

Commit 2eef68d

Browse files
committed
Fix test
1 parent 7c1bc03 commit 2eef68d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

packages/sdk/fastly/__tests__/createPlatformInfo.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import createPlatformInfo from '../src/createPlatformInfo';
22

3+
const version = '0.0.1'; // x-release-please-version
4+
35
describe('Fastly Platform Info', () => {
46
it('platformData shows correct information', () => {
57
const platformData = createPlatformInfo();
@@ -10,7 +12,7 @@ describe('Fastly Platform Info', () => {
1012

1113
expect(platformData.sdkData()).toEqual({
1214
name: '@launchdarkly/fastly-server-sdk',
13-
version: '__LD_VERSION__',
15+
version,
1416
userAgentBase: 'FastlyEdgeSDK',
1517
});
1618
});

release-please-config.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
"path": "example/package.json",
3333
"jsonpath": "$.dependencies['@launchdarkly/fastly-server-sdk']"
3434
},
35-
"src/createPlatformInfo.ts"
35+
"src/createPlatformInfo.ts",
36+
"__tests__/createPlatformInfo.test.ts"
3637
]
3738
},
3839
"packages/sdk/react-native": {},

0 commit comments

Comments
 (0)