Skip to content

Commit 6a6834c

Browse files
format
1 parent cfa3279 commit 6a6834c

10 files changed

Lines changed: 35 additions & 37 deletions

File tree

eslint.config.mjs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,8 @@ export default defineConfig([
5050
rules: {
5151
// Allow floating promises in test files for async test functions
5252
'@typescript-eslint/no-floating-promises': {
53-
allowForKnownSafePromises: [
54-
{ from: "node:test", names: ['describe', 'it'] }
55-
]
56-
}
53+
allowForKnownSafePromises: [{ from: 'node:test', names: ['describe', 'it'] }],
54+
},
5755
},
5856
},
5957

integrationTests/applicationManagement/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ Each directory within the `integrationTests/applicationManagement/tests/` direct
4141
1. Run Harper (`harperdb start`)
4242
2. Run Tests
4343
1. Run all tests in sequence using: `npm run test:integration:application-management`
44-
2. Run an individual test using `node --test integrationTests/applicationManagement/tests/<path-to-test-file>`
44+
2. Run an individual test using `node --test integrationTests/applicationManagement/tests/<path-to-test-file>`
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
static:
2-
files: 'index.html'
2+
files: 'index.html'
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
3-
<head>
4-
<meta charset="UTF-8">
5-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6-
<title>basic-with-package-json</title>
7-
</head>
8-
<body>
9-
<h1>basic-with-package-json</h1>
10-
</body>
11-
</html>
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>basic-with-package-json</title>
7+
</head>
8+
<body>
9+
<h1>basic-with-package-json</h1>
10+
</body>
11+
</html>

integrationTests/applicationManagement/tests/basic-with-package-json/fixture/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
"name": "basic-with-package-json",
33
"version": "1.0.0",
44
"private": true
5-
}
5+
}

integrationTests/applicationManagement/tests/basic-without-package-json/basic-without-package-json.test.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ describe('basic-without-package-json', () => {
3333
assert.ok(existsSync(join(applicationPath, 'node_modules', 'harperdb')));
3434
assert.ok(existsSync(join(config.rootPath, 'harper-application-lock.json')));
3535
});
36-
});
36+
});
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
static:
2-
files: 'index.html'
2+
files: 'index.html'
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
3-
<head>
4-
<meta charset="UTF-8">
5-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6-
<title>basic-without-package-json</title>
7-
</head>
8-
<body>
9-
<h1>basic-without-package-json</h1>
10-
</body>
11-
</html>
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>basic-without-package-json</title>
7+
</head>
8+
<body>
9+
<h1>basic-without-package-json</h1>
10+
</body>
11+
</html>

integrationTests/applicationManagement/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
"compilerOptions": {
55
"esModuleInterop": true
66
}
7-
}
7+
}

integrationTests/applicationManagement/utils.mts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ export async function dropApplication(applicationName: string) {
2323
headers: { 'Content-Type': 'application/json' },
2424
body: JSON.stringify({
2525
operation: 'drop_component',
26-
project: applicationName
27-
})
26+
project: applicationName,
27+
}),
2828
});
2929
assert.equal(statusCode, 200, `Failed to remove application: ${await body.text()}`);
3030
}
@@ -38,8 +38,8 @@ export async function deployApplication(applicationName: string, applicationFixt
3838
operation: 'deploy_component',
3939
project: applicationName,
4040
payload,
41-
restart: true
42-
})
41+
restart: true,
42+
}),
4343
});
4444
assert.equal(statusCode, 200, `Failed to deploy application: ${await body.text()}`);
4545
await sleep(sleepMs);
@@ -50,12 +50,12 @@ export async function getConfiguration() {
5050
method: 'POST',
5151
headers: {
5252
'Content-Type': 'application/json',
53-
'Accept': 'application/json'
53+
'Accept': 'application/json',
5454
},
5555
body: JSON.stringify({
5656
operation: 'get_configuration',
57-
json: true
58-
})
57+
json: true,
58+
}),
5959
});
6060
assert.equal(statusCode, 200);
6161
return body.json();

0 commit comments

Comments
 (0)