Revert to previous tests

This commit is contained in:
Jason Saelhof
2015-08-10 09:17:57 -06:00
parent 84dc21b73b
commit 348f3e62bd

View File

@@ -1,7 +1,13 @@
/// <reference path="yamljs.d.ts" />
var yamlObj = YAML.parse("test: some yaml");
import yamljs = require('yamljs');
YAML.stringify(yamlObj);
yamljs.load('yaml-testfile.yml');
YAML.load("path/to/file.yaml");
yamljs.parse('this_is_no_ymlstring');
yamljs.stringify({ a : 'val', b : { ba : 123, bb : 'nothing' }});
yamljs.stringify({ a : 'val', b : { ba : 123, bb : 'nothing' }}, 1);
yamljs.stringify({ a : 'val', b : { ba : 123, bb : 'nothing' }}, 1, 2);