UNPKG

code-theme-converter

Version:

Convert any vscode theme with ease!

20 lines (19 loc) 810 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const mockdate_1 = __importDefault(require("mockdate")); const colorScheme_1 = require("../colorScheme"); const test_theme_json_1 = __importDefault(require("./data/test-theme.json")); describe('colorScheme', () => { describe('convertToIdea', () => { it('should be defined', () => { expect(colorScheme_1.convertToIdea).toBeDefined(); }); it('should convert the theme', () => { mockdate_1.default.set(1597066014849); expect(colorScheme_1.convertToIdea(test_theme_json_1.default, '1.0.0')).toMatchSnapshot(); }); }); });