本文整理匯總了TypeScript中wed/wed-options-validation.processWedOptions函數的典型用法代碼示例。如果您正苦於以下問題:TypeScript processWedOptions函數的具體用法?TypeScript processWedOptions怎麽用?TypeScript processWedOptions使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了processWedOptions函數的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: it
it("returns cleaned options when done", () => {
const options: WedOptions = {
metadata: {
name: "Test",
authors: ["Louis-Dominique Dubeau"],
description: "TEST MODE. DO NOT USE IN PRODUCTION!",
license: "MPL 2.0",
copyright: "Mangalam Research Center for Buddhist Languages",
},
label_levels: {
max: 2,
initial: 1,
},
attributes: {
handling: "edit",
autohide: {
method: "selector",
elements: [{
selector: "a",
attributes: [
"moo",
],
}],
},
},
};
const result = processWedOptions(options);
expect(result).is.not.instanceof(Array);
});