Files
DefinitelyTyped/types/chai-xml/index.d.ts
2017-03-24 14:27:52 -07:00

39 lines
886 B
TypeScript

// Type definitions for chai-xml 0.3
// Project: https://github.com/krampstudio/chai-xml
// Definitions by: Jeff Goddard <https://github.com/jedigo>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="chai" />
declare global {
namespace Chai {
interface Assertion {
xml: ChaiXml.XmlAssertion;
}
}
}
declare namespace ChaiXml {
interface XmlAssertion extends Chai.Assertion {
valid(): XmlAssertion;
not: XmlAssertion;
to: XmlAssertion;
be: XmlAssertion;
been: XmlAssertion;
is: XmlAssertion;
that: XmlAssertion;
which: XmlAssertion;
and: XmlAssertion;
has: XmlAssertion;
have: XmlAssertion;
with: XmlAssertion;
at: XmlAssertion;
of: XmlAssertion;
same: XmlAssertion;
}
}
declare function chaiXml(chai: any, utils: any): void;
export = chaiXml;