Skip to content

Commit e51ea81

Browse files
committed
Replace yaml.safeLoad with yaml.load
1 parent 1b66dc5 commit e51ea81

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

javascript/tests/test_decode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ var yamlTestFiles = utils.getYamlTests();
2323
describe('test packages based on YAML test files', function () {
2424
yamlTestFiles.forEach(function (filename) {
2525
describe(filename, function () {
26-
var yamlConfig = yaml.safeLoad(fs.readFileSync(filename));
26+
var yamlConfig = yaml.load(fs.readFileSync(filename));
2727
if ("tests" in yamlConfig) {
2828
yamlConfig.tests.map(function (testSpec, i) {
2929
describe('test spec '+i, function () {

javascript/tests/test_dispatch_decoder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function dispatchee(err, msg) {
3232
describe('test packages based on YAML descriptors, through the dispatcher', function () {
3333
yamlTestFiles.forEach(function (filename) {
3434
describe(filename, function () {
35-
var yamlConfig = yaml.safeLoad(fs.readFileSync(filename));
35+
var yamlConfig = yaml.load(fs.readFileSync(filename));
3636
if ("tests" in yamlConfig) {
3737
yamlConfig.tests.map(function (testSpec, i) {
3838
describe('test spec '+i, function () {

0 commit comments

Comments
 (0)