mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-11 11:50:54 +08:00
Fix some tests
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/// <reference path="platform.d.ts" />
|
||||
|
||||
declare interface ITestContainer {
|
||||
interface ITestContainer {
|
||||
[name: string]: PlatformStatic;
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ function runTests() {
|
||||
|
||||
|
||||
onFalse = (name: string) => {
|
||||
return function () => {
|
||||
return () => {
|
||||
console.log('\tfailed on prop "' + name + '" for "' + n + '"');
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+2
-2
@@ -14,8 +14,8 @@ interface PlatformStatic {
|
||||
ua?: string;
|
||||
version?: string;
|
||||
os?: PlatformOS;
|
||||
parse(ua: string): PlatformStatic;
|
||||
toString(): string;
|
||||
parse?(ua: string): PlatformStatic;
|
||||
toString?(): string;
|
||||
}
|
||||
|
||||
interface PlatformOS {
|
||||
|
||||
Reference in New Issue
Block a user