mirror of
https://github.com/XiaoDaiGua-Ray/ray-template.git
synced 2026-11-20 02:03:35 +08:00
Share workspace packages between Ray Admin and the interactive docs. BREAKING CHANGE: v6 is a new major line. v5 stays on legacy/v5.
17 lines
457 B
TypeScript
17 lines
457 B
TypeScript
import { prefixCacheKey } from '../../apps/admin/src/utils/app/prefix-cache-key'
|
|
|
|
describe('prefixCacheKey', () => {
|
|
it('should return the key with the default prefix', () => {
|
|
const key = 'signing'
|
|
|
|
expect(prefixCacheKey(key)).toBe(key)
|
|
})
|
|
|
|
it('should return the key with the custom prefix', () => {
|
|
const key = 'signing'
|
|
const customPrefix = 'ray-'
|
|
|
|
expect(prefixCacheKey(key, { customPrefix })).toBe(customPrefix + key)
|
|
})
|
|
})
|