mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
More tests added
This commit is contained in:
@@ -2,9 +2,13 @@
|
||||
|
||||
var options: prettyjson.IOptions,
|
||||
input: string,
|
||||
output: string;
|
||||
output: string,
|
||||
version: string;
|
||||
|
||||
|
||||
console.log("using prettyjson v" + prettyjson.version)
|
||||
version = prettyjson.version;
|
||||
|
||||
input = 'This is a string';
|
||||
output = prettyjson.render(input);
|
||||
|
||||
@@ -16,3 +20,4 @@ output = prettyjson.render({param1: 'first string', param2: 'second string'});
|
||||
|
||||
output = prettyjson.render({first_param: {subparam: 'first string', subparam2: 'another string'}, second_param: 'second string'});
|
||||
|
||||
prettyjson.renderString('{name: "Wael", nested: {list: ["a", "b"], int: 3}}')
|
||||
|
||||
Reference in New Issue
Block a user