Skip to content

Commit 4387128

Browse files
committed
lint TypeScript files.
1 parent 839e491 commit 4387128

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

clients/TypeScript/packages/client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"build": "tsc --build ./src",
1818
"build-all": "tsc --build ./src && tsc --build ./test",
1919
"cleanup": "shx rm -rf dist node_modules",
20-
"lint": "eslint --ignore-path ../../.eslintignore \"**/*.ts\"",
20+
"lint": "eslint --ignore-path ../../.eslintignore \"**/*.ts\" --fix",
2121
"prepack": "yarn build",
2222
"test": "jest -c ./jest.config.js"
2323
},

clients/TypeScript/packages/client/test/LedgerStateQuery.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ describe('Local state queries', () => {
245245
const config = await LedgerStateQuery.genesisConfiguration(context, 'conway')
246246
expect((config as GenesisConway).constitution).toBeDefined()
247247
expect(config.updatableParameters.plutusCostModels['plutus:v3'])
248-
.toEqual([ 100788, 420, 1, 1, 1000, 173, 0, 1, 1000, 59957, 4, 1, 11183, 32, 201305, 8356, 4, 16000, 100, 16000, 100, 16000, 100, 16000, 100, 16000, 100, 16000, 100, 100, 100, 16000, 100, 94375, 32, 132994, 32, 61462, 4, 72010, 178, 0, 1, 22151, 32, 91189, 769, 4, 2, 85848, 123203, 7305, -900, 1716, 549, 57, 85848, 0, 1, 1, 1000, 42921, 4, 2, 24548, 29498, 38, 1, 898148, 27279, 1, 51775, 558, 1, 39184, 1000, 60594, 1, 141895, 32, 83150, 32, 15299, 32, 76049, 1, 13169, 4, 22100, 10, 28999, 74, 1, 28999, 74, 1, 43285, 552, 1, 44749, 541, 1, 33852, 32, 68246, 32, 72362, 32, 7243, 32, 7391, 32, 11546, 32, 85848, 123203, 7305, -900, 1716, 549, 57, 85848, 0, 1, 90434, 519, 0, 1, 74433, 32, 85848, 123203, 7305, -900, 1716, 549, 57, 85848, 0, 1, 1, 85848, 123203, 7305, -900, 1716, 549, 57, 85848, 0, 1, 955506, 213312, 0, 2, 270652, 22588, 4, 1457325, 64566, 4, 20467, 1, 4, 0, 141992, 32, 100788, 420, 1, 1, 81663, 32, 59498, 32, 20142, 32, 24588, 32, 20744, 32, 25933, 32, 24623, 32, 43053543, 10, 53384111, 14333, 10, 43574283, 26308, 10, 16000, 100, 16000, 100, 962335, 18, 2780678, 6, 442008, 1, 52538055, 3756, 18, 267929, 18, 76433006, 8868, 18, 52948122, 18, 1995836, 36, 3227919, 12, 901022, 1, 166917843, 4307, 36, 284546, 36, 158221314, 26549, 36, 74698472, 36, 333849714, 1, 254006273, 72, 2174038, 72, 2261318, 64571, 4, 207616, 8310, 4, 1293828, 28716, 63, 0, 1, 1006041, 43623, 251, 0, 1])
248+
.toEqual([100788, 420, 1, 1, 1000, 173, 0, 1, 1000, 59957, 4, 1, 11183, 32, 201305, 8356, 4, 16000, 100, 16000, 100, 16000, 100, 16000, 100, 16000, 100, 16000, 100, 100, 100, 16000, 100, 94375, 32, 132994, 32, 61462, 4, 72010, 178, 0, 1, 22151, 32, 91189, 769, 4, 2, 85848, 123203, 7305, -900, 1716, 549, 57, 85848, 0, 1, 1, 1000, 42921, 4, 2, 24548, 29498, 38, 1, 898148, 27279, 1, 51775, 558, 1, 39184, 1000, 60594, 1, 141895, 32, 83150, 32, 15299, 32, 76049, 1, 13169, 4, 22100, 10, 28999, 74, 1, 28999, 74, 1, 43285, 552, 1, 44749, 541, 1, 33852, 32, 68246, 32, 72362, 32, 7243, 32, 7391, 32, 11546, 32, 85848, 123203, 7305, -900, 1716, 549, 57, 85848, 0, 1, 90434, 519, 0, 1, 74433, 32, 85848, 123203, 7305, -900, 1716, 549, 57, 85848, 0, 1, 1, 85848, 123203, 7305, -900, 1716, 549, 57, 85848, 0, 1, 955506, 213312, 0, 2, 270652, 22588, 4, 1457325, 64566, 4, 20467, 1, 4, 0, 141992, 32, 100788, 420, 1, 1, 81663, 32, 59498, 32, 20142, 32, 24588, 32, 20744, 32, 25933, 32, 24623, 32, 43053543, 10, 53384111, 14333, 10, 43574283, 26308, 10, 16000, 100, 16000, 100, 962335, 18, 2780678, 6, 442008, 1, 52538055, 3756, 18, 267929, 18, 76433006, 8868, 18, 52948122, 18, 1995836, 36, 3227919, 12, 901022, 1, 166917843, 4307, 36, 284546, 36, 158221314, 26549, 36, 74698472, 36, 333849714, 1, 254006273, 72, 2174038, 72, 2261318, 64571, 4, 207616, 8310, 4, 1293828, 28716, 63, 0, 1, 1006041, 43623, 251, 0, 1])
249249
})
250250
})
251251
describe('ledgerTip', () => {

clients/TypeScript/packages/client/test/TransactionSubmission.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ describe('TransactionSubmission', () => {
5151
it('rejects with an array of named errors (submitTransaction)', async () => {
5252
try {
5353
const someTransaction =
54-
'84A400818258207D93519864ACAD5714A4057FF16950632D45BB0B5644DD81AB131'+
55-
'03464FC76D4000181825839015C2B1A505AAD911F3F2B1932DC37679995B3C352EC'+
56-
'FF08070682E8365E7DD93FF18E14F79BB80924ECFD775081CE0020A19B7E0607026'+
54+
'84A400818258207D93519864ACAD5714A4057FF16950632D45BB0B5644DD81AB131' +
55+
'03464FC76D4000181825839015C2B1A505AAD911F3F2B1932DC37679995B3C352EC' +
56+
'FF08070682E8365E7DD93FF18E14F79BB80924ECFD775081CE0020A19B7E0607026' +
5757
'6D11A05D49B93021A0002C0ED031A04724864A0F5F6'
5858
await submit(someTransaction)
5959
} catch (e) {
@@ -75,7 +75,7 @@ describe('TransactionSubmission', () => {
7575
alonzo: "invalid or incomplete value of type 'Transaction': Size mismatch when decoding Object / Array. Expected 0, but found 4.",
7676
babbage: "invalid or incomplete value of type 'Transaction': Size mismatch when decoding Object / Array. Expected 0, but found 4.",
7777
conway: "invalid or incomplete value of type 'Transaction': Size mismatch when decoding Object / Array. Expected 0, but found 4.",
78-
dijkstra: "invalid or incomplete value of type 'Transaction': Unexpected list length: 0. Expected: 4 or 3.",
78+
dijkstra: "invalid or incomplete value of type 'Transaction': Unexpected list length: 0. Expected: 4 or 3."
7979
})
8080
}
8181
})
@@ -98,7 +98,7 @@ describe('TransactionSubmission', () => {
9898
alonzo: "invalid or incomplete value of type 'Transaction': Size mismatch when decoding Object / Array. Expected 3, but found 4.",
9999
babbage: "invalid or incomplete value of type 'Transaction': Size mismatch when decoding Object / Array. Expected 3, but found 4.",
100100
conway: "invalid or incomplete value of type 'Transaction': Size mismatch when decoding Object / Array. Expected 3, but found 4.",
101-
dijkstra: "invalid or incomplete value of type 'Transaction': An error occured while decoding value of type Annotator (DijkstraTxBodyRaw TopTx). field fee with key 2, not decoded.",
101+
dijkstra: "invalid or incomplete value of type 'Transaction': An error occured while decoding value of type Annotator (DijkstraTxBodyRaw TopTx). field fee with key 2, not decoded."
102102
})
103103
}
104104
})

0 commit comments

Comments
 (0)