mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-15 02:48:30 -05:00
Alanren/sql on windows (#6785)
* download file * add entry * fix issues * add 2019 * string updates * make dialog self contained * expose notebook input dialog * refactoring * add log and correct the url * comments
This commit is contained in:
@@ -12,13 +12,15 @@ import { EOL } from 'os';
|
||||
import { ResourceTypeService } from '../services/resourceTypeService';
|
||||
import { IPlatformService } from '../services/platformService';
|
||||
import { ToolsService } from '../services/toolsService';
|
||||
import { NotebookService } from '../services/notebookService';
|
||||
|
||||
suite('Resource Type Service Tests', function (): void {
|
||||
|
||||
test('test resource types', () => {
|
||||
const mockPlatformService = TypeMoq.Mock.ofType<IPlatformService>();
|
||||
const toolsService = new ToolsService();
|
||||
const resourceTypeService = new ResourceTypeService(mockPlatformService.object, toolsService);
|
||||
const notebookService = new NotebookService(mockPlatformService.object, '');
|
||||
const resourceTypeService = new ResourceTypeService(mockPlatformService.object, toolsService, notebookService);
|
||||
// index 0: platform name, index 1: number of expected resource types
|
||||
const platforms: { platform: string; resourceTypeCount: number }[] = [
|
||||
{ platform: 'win32', resourceTypeCount: 2 },
|
||||
@@ -39,4 +41,4 @@ suite('Resource Type Service Tests', function (): void {
|
||||
const validationErrors = resourceTypeService.validateResourceTypes(allResourceTypes);
|
||||
assert(validationErrors.length === 0, `Validation errors detected in the package.json: ${validationErrors.join(EOL)}.`);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user