Skip to content

Commit fb520bf

Browse files
author
Umutcan ÖNER
committed
Merge remote-tracking branch 'origin/release/v0.3.0' into staging
# Please enter a commit message to explain why this merge is necessary, # especially if it merges an updated upstream into a topic branch. # # Lines starting with '#' will be ignored, and an empty message aborts # the commit.
2 parents a1b5e5d + a94ccce commit fb520bf

File tree

4 files changed

+23
-21
lines changed

4 files changed

+23
-21
lines changed

packages/auth/src/index.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,20 @@ describe('Auth', () => {
1010
it('should return null for any token (placeholder)', () => {
1111
const consoleSpy = vi.spyOn(console, 'log');
1212
const result = authenticate('test-token');
13-
13+
1414
expect(result).toBeNull();
1515
expect(consoleSpy).toHaveBeenCalledWith('Authenticating token:', 'test-token');
16-
16+
1717
consoleSpy.mockRestore();
1818
});
1919

2020
it('should create a token for a user', () => {
2121
const user: User = {
2222
id: '123',
2323
email: 'test@example.com',
24-
name: 'Test User'
24+
name: 'Test User',
2525
};
26-
26+
2727
const token = createToken(user);
2828
expect(token).toBe('token-123');
2929
});

packages/cms/src/index.test.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,28 +10,28 @@ describe('CMS', () => {
1010
it('should return null when getting content', async () => {
1111
const cms = new CMS();
1212
const consoleSpy = vi.spyOn(console, 'log');
13-
13+
1414
const result = await cms.getContent('test-id');
15-
15+
1616
expect(result).toBeNull();
1717
expect(consoleSpy).toHaveBeenCalledWith('Getting content:', 'test-id');
18-
18+
1919
consoleSpy.mockRestore();
2020
});
2121

2222
it('should create content', async () => {
2323
const cms = new CMS();
2424
const consoleSpy = vi.spyOn(console, 'log');
25-
25+
2626
const contentData = {
2727
title: 'Test Content',
28-
body: 'Test body'
28+
body: 'Test body',
2929
};
30-
30+
3131
await cms.createContent(contentData);
32-
32+
3333
expect(consoleSpy).toHaveBeenCalledWith('Creating content:', contentData);
34-
34+
3535
consoleSpy.mockRestore();
3636
});
3737
});

packages/database/src/index.test.ts

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,34 +4,36 @@ import { Database, type DatabaseConfig } from './index';
44
describe('Database', () => {
55
it('should create a database instance', () => {
66
const config: DatabaseConfig = {
7-
connectionString: 'test://localhost:5432/test'
7+
connectionString: 'test://localhost:5432/test',
88
};
99
const db = new Database(config);
1010
expect(db).toBeInstanceOf(Database);
1111
});
1212

1313
it('should log connection message', async () => {
1414
const config: DatabaseConfig = {
15-
connectionString: 'test://localhost:5432/test'
15+
connectionString: 'test://localhost:5432/test',
1616
};
1717
const db = new Database(config);
1818
const consoleSpy = vi.spyOn(console, 'log');
19-
19+
2020
await db.connect();
21-
22-
expect(consoleSpy).toHaveBeenCalledWith('Connecting to database with connection string: test://localhost:5432/test');
21+
22+
expect(consoleSpy).toHaveBeenCalledWith(
23+
'Connecting to database with connection string: test://localhost:5432/test'
24+
);
2325
consoleSpy.mockRestore();
2426
});
2527

2628
it('should log disconnect message', async () => {
2729
const config: DatabaseConfig = {
28-
connectionString: 'test://localhost:5432/test'
30+
connectionString: 'test://localhost:5432/test',
2931
};
3032
const db = new Database(config);
3133
const consoleSpy = vi.spyOn(console, 'log');
32-
34+
3335
await db.disconnect();
34-
36+
3537
expect(consoleSpy).toHaveBeenCalledWith('Disconnecting from database...');
3638
consoleSpy.mockRestore();
3739
});

tsconfig.build.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
"composite": false,
66
"tsBuildInfoFile": null
77
}
8-
}
8+
}

0 commit comments

Comments
 (0)