tests
This commit is contained in:
parent
3a7254708e
commit
b63e58784c
41 changed files with 5762 additions and 4477 deletions
|
|
@ -1,9 +1,9 @@
|
|||
import { describe, expect, it } from 'bun:test';
|
||||
import { normalizeServiceName, generateCachePrefix } from '../src/service-utils';
|
||||
import { generateCachePrefix, normalizeServiceName } from '../src/service-utils';
|
||||
|
||||
describe('ServiceCache Integration', () => {
|
||||
// Since ServiceCache depends on external createCache, we'll test the utility functions it uses
|
||||
|
||||
|
||||
describe('generateCachePrefix usage', () => {
|
||||
it('should generate correct cache prefix for service', () => {
|
||||
const prefix = generateCachePrefix('userService');
|
||||
|
|
@ -49,9 +49,9 @@ describe('ServiceCache Integration', () => {
|
|||
const serviceName = 'UserService';
|
||||
const normalized = normalizeServiceName(serviceName);
|
||||
expect(normalized).toBe('user-service');
|
||||
|
||||
|
||||
const prefix = generateCachePrefix(normalized);
|
||||
expect(prefix).toBe('cache:user-service');
|
||||
});
|
||||
});
|
||||
})
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue