mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
Apply new lint rules in more packages (#15521)
This commit is contained in:
@@ -7,13 +7,12 @@ interface Tester {
|
||||
same(a: any, b: any): void;
|
||||
plan(id: number): void;
|
||||
ok(a: any): void;
|
||||
};
|
||||
}
|
||||
|
||||
function test(c: string, f: (t: Tester) => void) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
test('no elements', t => {
|
||||
t.is(xml(), '');
|
||||
t.is(xml([]), '');
|
||||
@@ -162,4 +161,4 @@ test('xml declaration options', t => {
|
||||
t.is(xml([{a: 'test'}], {declaration: false}), '<a>test</a>');
|
||||
t.is(xml([{a: 'test'}], {declaration: true, indent: '\n'}), '<?xml version="1.0" encoding="UTF-8"?>\n<a>test</a>');
|
||||
t.is(xml([{a: 'test'}], {}), '<a>test</a>');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user