UNPKG

pcp-server-nodejs-sdk

Version:

[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=PAYONE-GmbH_PCP-server-nodeJS-SDK&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=PAYONE-GmbH_PCP-server-nodeJS-SDK) [![Coverage](https://sonarcloud.io/api/pr

16 lines 717 B
import { expect, describe, test } from 'vitest'; import { ServerMetaInfo } from './ServerMetaInfo.js'; import * as os from 'os'; describe('ServerMetaInfo', () => { test('constructs', () => { const serverMetaInfo = new ServerMetaInfo(); expect(serverMetaInfo).toBeDefined(); }); test('initializes with correct values', () => { const serverMetaInfo = new ServerMetaInfo(); expect(serverMetaInfo.platformIdentifier).toBe(`${os.platform()}, node version is: ${process.version}`); expect(serverMetaInfo.sdkIdentifier).toBe('NodeServerSDK/v1.2.0'); expect(serverMetaInfo.sdkCreator).toBe('PAYONE GmbH'); }); }); //# sourceMappingURL=ServerMetaInfo.test.js.map