Skip to content

Commit 34aac82

Browse files
jayantkJayant Krishnamurthy
andauthored
Update unit tests for symbology (#19)
* fix unit tests for symbology * bump version Co-authored-by: Jayant Krishnamurthy <[email protected]>
1 parent 3de7232 commit 34aac82

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pythnetwork/client",
3-
"version": "2.5.1",
3+
"version": "2.5.3",
44
"description": "Client for consuming Pyth price data",
55
"homepage": "https://pyth.network",
66
"main": "lib/index.js",

src/__tests__/Product.ETH.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ test('Product', (done) => {
1515
console.log(product)
1616
expect(product.magic).toBe(Magic)
1717
expect(product.version).toBe(Version)
18-
expect(product.product.symbol).toBe('ETH/USD')
18+
expect(product.product.symbol).toBe('Crypto.ETH/USD')
1919
done()
2020
} else {
2121
done('No product accountInfo')

src/__tests__/PythNetworkRestClient-test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ test('PythHttpClientCall', done => {
1515
console.log("product symbols: ", result.symbols);
1616

1717
// Find a product with symbol "SOL/USD"
18-
const products = result.products.filter(p => p.symbol === "SOL/USD");
18+
const products = result.products.filter(p => p.symbol === "Crypto.SOL/USD");
1919
expect(products.length).toBeGreaterThan(0);
2020

2121
// Find product prices

0 commit comments

Comments
 (0)