Skip to content

Commit 6169c0c

Browse files
committed
refactor: Standardize quotes in security.yml and docker-compose.yml and apply minor formatting to payments.spec.ts.
1 parent fba938d commit 6169c0c

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

.github/workflows/security.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
branches: [main, develop]
1313
schedule:
1414
# Run weekly on Sundays at 00:00 UTC
15-
- cron: "0 0 * * 0"
15+
- cron: '0 0 * * 0'
1616
workflow_dispatch:
1717

1818
permissions:
@@ -67,7 +67,7 @@ jobs:
6767
- name: Perform CodeQL Analysis
6868
uses: github/codeql-action/analyze@v4
6969
with:
70-
category: "/language:${{ matrix.language }}"
70+
category: '/language:${{ matrix.language }}'
7171

7272
# ===========================================================================
7373
# npm Audit

docker-compose.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ services:
1414
volumes:
1515
- postgres_data:/var/lib/postgresql/data
1616
ports:
17-
- "5432:5432"
17+
- '5432:5432'
1818
healthcheck:
19-
test: ["CMD-SHELL", "pg_isready -U postgres -d learnix"]
19+
test: ['CMD-SHELL', 'pg_isready -U postgres -d learnix']
2020
interval: 10s
2121
timeout: 5s
2222
retries: 5
@@ -40,12 +40,12 @@ services:
4040
DB_USERNAME: ${POSTGRES_USER:-postgres}
4141
DB_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
4242
DB_NAME: ${POSTGRES_DB:-learnix}
43-
TYPEORM_SYNCHRONIZE: "true"
43+
TYPEORM_SYNCHRONIZE: 'true'
4444
# Override other vars if needed, or rely on .env file
4545
env_file:
4646
- ./apps/api/.env
4747
ports:
48-
- "3000:3000"
48+
- '3000:3000'
4949
restart: unless-stopped
5050

5151
frontend:
@@ -63,7 +63,7 @@ services:
6363
env_file:
6464
- ./apps/web/.env
6565
ports:
66-
- "5173:3000"
66+
- '5173:3000'
6767
restart: unless-stopped
6868

6969
volumes:

e2e/payments.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ test.describe('Payments System', () => {
8585
.filter({ has: page.getByRole('heading', { name: courseTitle }) })
8686
.first();
8787

88-
const approveBtn = adminCourseCard.getByRole('button', { name: /Approve/i });
88+
const approveBtn = adminCourseCard.getByRole('button', {
89+
name: /Approve/i,
90+
});
8991

9092
// Ensure we are on the right tab if needed (though default is usually pending)
9193
if (!(await approveBtn.isVisible())) {
@@ -101,9 +103,7 @@ test.describe('Payments System', () => {
101103
const dialog = page.getByRole('dialog');
102104
await expect(dialog).toBeVisible({ timeout: 10000 });
103105

104-
await dialog
105-
.getByRole('button', { name: 'Approve', exact: true })
106-
.click();
106+
await dialog.getByRole('button', { name: 'Approve', exact: true }).click();
107107

108108
await expect(page.getByText('Course approved')).toBeVisible({
109109
timeout: 30000,

0 commit comments

Comments
 (0)