mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 08:37:22 +00:00
Cleanup
This commit is contained in:
1 parent
9a6058fedb
commit
bacf6f2869
4 files changed
+22
-21
No files matched your search
@@ -1,7 +1,6 @@
|
||||
import { describe, it, expect, beforeEach, vi } from 'vitest';
|
||||
import { BuildProjectTool } from './BuildProjectTool';
|
||||
import type { JSRuntimeFS } from '../JSRuntime';
|
||||
import type { AppConfig } from '../../contexts/AppContext';
|
||||
|
||||
// Mock the build functions
|
||||
vi.mock('../build', () => ({
|
||||
@@ -12,7 +11,6 @@ import { buildProject } from '../build';
|
||||
|
||||
describe('BuildProjectTool', () => {
|
||||
let mockFS: JSRuntimeFS;
|
||||
let mockConfig: AppConfig;
|
||||
let tool: BuildProjectTool;
|
||||
|
||||
beforeEach(() => {
|
||||
@@ -26,15 +24,9 @@ describe('BuildProjectTool', () => {
|
||||
mkdir: vi.fn(),
|
||||
} as unknown as JSRuntimeFS;
|
||||
|
||||
mockConfig = {
|
||||
theme: 'light',
|
||||
relayUrl: 'wss://relay.nostr.band',
|
||||
deployServer: 'shakespeare.wtf',
|
||||
esmUrl: 'https://esm.shakespeare.diy',
|
||||
language: 'en',
|
||||
};
|
||||
|
||||
tool = new BuildProjectTool(mockFS, '/test/project', mockConfig);
|
||||
|
||||
tool = new BuildProjectTool(mockFS, '/test/project', 'https://esm.shakespeare.diy');
|
||||
});
|
||||
|
||||
it('should have correct description', () => {
|
||||
|
||||
Reference in new issue
Block a user