We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5779a05 commit 2698df8Copy full SHA for 2698df8
test/index.test.ts
@@ -5,3 +5,4 @@ import './resource-embedding'
5
import './transforms'
6
import './rpc'
7
import './max-affected'
8
+import './version-and-constants.test'
test/version-and-constants.test.ts
@@ -0,0 +1,15 @@
1
+import { version } from '../src/version'
2
+import { DEFAULT_HEADERS } from '../src/constants'
3
+
4
+describe('version', () => {
+ test('should export version string', () => {
+ expect(version).toBe('0.0.0-automated')
+ })
+})
9
10
+describe('constants', () => {
11
+ test('should have X-Client-Info header with correct format', () => {
12
+ expect(DEFAULT_HEADERS).toHaveProperty('X-Client-Info')
13
+ expect(DEFAULT_HEADERS['X-Client-Info']).toBe(`postgrest-js/${version}`)
14
15
0 commit comments