test: 兼容缓存路径平台差异
This commit is contained in:
parent
b0337fb70a
commit
1603f7f657
@ -10,12 +10,13 @@ describe('BangDream cache path', () => {
|
|||||||
'/assets/cn/event/foo/topscreen_rip/bg_eventtop.png',
|
'/assets/cn/event/foo/topscreen_rip/bg_eventtop.png',
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const normalizedDirectory = directory.replace(/[\\/]/g, '_');
|
||||||
expect(directory).toContain(
|
expect(directory).toContain(
|
||||||
path.join('.kt-workspace', 'cache', 'bangdream'),
|
path.join('.kt-workspace', 'cache', 'bangdream'),
|
||||||
);
|
);
|
||||||
expect(directory).toContain('bestdori.com');
|
expect(directory).toContain('bestdori.com');
|
||||||
expect(directory).toContain(
|
expect(normalizedDirectory).toContain(
|
||||||
path.join('assets', 'cn', 'event', 'foo', 'topscreen_rip'),
|
'assets_cn_event_foo_topscreen_rip',
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user