Add publisher release versions to plugins
This commit is contained in:
@@ -130,6 +130,7 @@ describe('plugin kind writes to plugin destination', () => {
|
||||
const { script } = createScript({
|
||||
name: 'demo plugin',
|
||||
kind: 'plugin',
|
||||
releaseVersion: 'v3.1.0',
|
||||
targetRelPath: 'demo.dll',
|
||||
scopeType: 'game',
|
||||
scopeValue: 't5',
|
||||
@@ -149,5 +150,8 @@ describe('plugin kind writes to plugin destination', () => {
|
||||
const bytes = await readFile(pluginPath);
|
||||
expect(bytes.equals(Buffer.from([0x00, 0x01, 0x02, 0x03]))).toBe(true);
|
||||
expect(betaId).toBeGreaterThan(0);
|
||||
const { GET } = await import('../../src/routes/api/betas/[id]/+server.js');
|
||||
const detail = await (await GET({ params: { id: String(betaId) } })).json();
|
||||
expect(detail.scripts[0].version.release_version).toBe('v3.1.0');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user