move application.yaml to collections/windows.yaml #40

This commit is contained in:
undergroundwires
2021-01-09 02:02:16 +01:00
parent 72e925fb6f
commit 6b83dcbf8f
24 changed files with 265 additions and 286 deletions

View File

@@ -1,6 +1,6 @@
import 'mocha';
import { expect } from 'chai';
import { YamlDocumentable } from 'js-yaml-loader!@/application.yaml';
import { DocumentableData } from 'js-yaml-loader!@/*';
import { parseDocUrls } from '@/application/Parser/DocumentationParser';
describe('DocumentationParser', () => {
@@ -10,7 +10,7 @@ describe('DocumentationParser', () => {
});
it('returns empty when empty', () => {
// arrange
const empty: YamlDocumentable = { };
const empty: DocumentableData = { };
// act
const actual = parseDocUrls(empty);
// assert
@@ -20,7 +20,7 @@ describe('DocumentationParser', () => {
// arrange
const url = 'https://privacy.sexy';
const expected = [ url ];
const sut: YamlDocumentable = { docs: url };
const sut: DocumentableData = { docs: url };
// act
const actual = parseDocUrls(sut);
// assert
@@ -29,7 +29,7 @@ describe('DocumentationParser', () => {
it('returns all when array', () => {
// arrange
const expected = [ 'https://privacy.sexy', 'https://github.com/undergroundwires/privacy.sexy' ];
const sut: YamlDocumentable = { docs: expected };
const sut: DocumentableData = { docs: expected };
// act
const actual = parseDocUrls(sut);
// assert