aerofly-missions
Version:
The Aerofly Missionsgerät converts simulator flight plan files for Aerofly FS 4, Microsoft Flight Simulator, X-Plane, GeoFS, and Garmin / Infinite Flight flight plan files. It also imports SimBrief flight plans.
19 lines (18 loc) • 747 B
JavaScript
import { Test } from "../Cli/Test.js";
import { Quote } from "../Export/Quote.js";
export class QuoteTest extends Test {
constructor(process, dieOnError = false) {
super(process, dieOnError);
this.process = process;
this.dieOnError = dieOnError;
this.group("Quote");
{
const test = '<a href="#abc">ABC</a>';
const testAsXml = "<a href="#abc">ABC</a>";
this.assertEquals(Quote.html(test), testAsXml);
this.assertEquals(Quote.unXml(testAsXml), test);
this.assertEquals(Quote.unXml("<![CDATA[" + test + "]]>"), test);
this.assertEquals(Quote.unXml("<![CDATA[" + testAsXml + "]]>"), testAsXml);
}
}
}