Skip to content

Commit 864d22c

Browse files
committed
FIX data
1 parent f4c6ce5 commit 864d22c

4 files changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ concurrency:
1818
jobs:
1919
test:
2020
runs-on: ubuntu-22.04
21+
timeout-minutes: 120
2122
steps:
2223
- uses: actions/checkout@v4
2324
- name: Setup Node.js environment
@@ -81,6 +82,7 @@ jobs:
8182

8283
test-some:
8384
runs-on: ubuntu-22.04
85+
timeout-minutes: 60
8486
steps:
8587
- uses: actions/checkout@v4
8688
- name: Setup Node.js environment

projects/pouchdb/src/app/app.logic.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export class Logic implements LogicInterface {
6464
});
6565
const first: User = docs.docs[0] as any;
6666
if (!first) {
67-
console.log('# user document not found ' + userName);
67+
console.log('# user document not found on getUserByName()' + userName);
6868
return null;
6969
}
7070
return first;

scripts/generate-example-data.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,9 @@ function randMessage(
5050
};
5151
}
5252

53-
let lastUserId = 0;
5453
function randUser(): User {
55-
lastUserId++;
5654
return {
57-
id: FakerName.firstName().toLowerCase() + lastUserId,
55+
id: FakerName.firstName().toLowerCase(),
5856
createdAt: unixInSeconds()
5957
};
6058
}

test/e2e.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ const window: any = {};
3535
import { exampleData } from '../example-data';
3636
fixture`Example page`.page(FRONTEND_URL);
3737

38+
39+
console.log('aaaa');
40+
console.dir(exampleData);
41+
3842
async function insertMessageToFirstUser(t: TestController, messageText: string) {
3943
// click on the first user
4044
const firstUserDiv = Selector('.user-with-last-message').nth(0);

0 commit comments

Comments
 (0)