mirror of
https://github.com/luxfi/uma.git
synced 2026-07-27 05:11:41 +00:00
fix(monitor-v2): pm tests (#4543)
Signed-off-by: Reinis Martinsons <reinis@umaproject.org>
This commit is contained in:
committed by
GitHub
parent
73fa6d3bba
commit
8d018ea105
@@ -1,10 +1,9 @@
|
||||
{
|
||||
"name": "monitor-v2",
|
||||
"name": "@uma/monitor-v2",
|
||||
"version": "1.2.0",
|
||||
"description": "Set of monitor and health check runners for oracle system",
|
||||
"author": "UMA Team",
|
||||
"license": "AGPL-3.0-only",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "tsc --build && yarn run monitor-polymarket-post-build",
|
||||
"monitor-polymarket-post-build": "mkdir -p ./dist/monitor-polymarket/abi && cp ./src/monitor-polymarket/abi/* ./dist/monitor-polymarket/abi",
|
||||
@@ -22,5 +21,9 @@
|
||||
"@nomicfoundation/hardhat-network-helpers": "^1.0.8",
|
||||
"chai": "^4.3.7",
|
||||
"sinon": "^15.0.1"
|
||||
},
|
||||
"publishConfig": {
|
||||
"registry": "https://registry.npmjs.com/",
|
||||
"access": "public"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -148,7 +148,7 @@ describe("PolymarketNotifier", function () {
|
||||
|
||||
// The spy should have been called as the order book is not empty.
|
||||
assert.equal(spy.callCount, 1);
|
||||
assert.equal(spy.getCall(0).lastArg.at, "PolymarketNotifier");
|
||||
assert.equal(spy.getCall(0).lastArg.at, "PolymarketMonitor");
|
||||
assert.equal(spy.getCall(0).lastArg.message, "Difference between proposed price and market signal! 🚨");
|
||||
assert.equal(spyLogLevel(spy, 0), "warn");
|
||||
assert.isTrue(
|
||||
@@ -222,7 +222,7 @@ describe("PolymarketNotifier", function () {
|
||||
|
||||
// The spy should have been called as the order book is not empty.
|
||||
assert.equal(spy.callCount, 1);
|
||||
assert.equal(spy.getCall(0).lastArg.at, "PolymarketNotifier");
|
||||
assert.equal(spy.getCall(0).lastArg.at, "PolymarketMonitor");
|
||||
assert.equal(spy.getCall(0).lastArg.message, "Difference between proposed price and market signal! 🚨");
|
||||
assert.equal(spyLogLevel(spy, 0), "warn");
|
||||
assert.isTrue(
|
||||
@@ -275,7 +275,7 @@ describe("PolymarketNotifier", function () {
|
||||
|
||||
// The spy should have been called as the order book is not empty.
|
||||
assert.equal(spy.callCount, 1);
|
||||
assert.equal(spy.getCall(0).lastArg.at, "PolymarketNotifier");
|
||||
assert.equal(spy.getCall(0).lastArg.at, "PolymarketMonitor");
|
||||
assert.equal(spy.getCall(0).lastArg.message, "Difference between proposed price and market signal! 🚨");
|
||||
assert.equal(spyLogLevel(spy, 0), "warn");
|
||||
assert.isTrue(
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
},
|
||||
"homepage": "https://umaproject.org",
|
||||
"license": "AGPL-3.0-or-later",
|
||||
"private": true,
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/UMAprotocol/protocol.git"
|
||||
@@ -31,5 +30,9 @@
|
||||
"scripts": {
|
||||
"test": "mocha 'test/**/*.js'",
|
||||
"build": "tsc --build"
|
||||
},
|
||||
"publishConfig": {
|
||||
"registry": "https://registry.npmjs.com/",
|
||||
"access": "public"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user