Permalink
Browse files

Rename `name` options to `filename` in the code.

  • Loading branch information...
dervus committed Feb 9, 2013
1 parent 0ecdb59 commit 8462011608dabcf3260808325ef868dde0040a2c
Showing with 4 additions and 4 deletions.
  1. +1 −1 lib/js-yaml/require.js
  2. +1 −1 test/functional/errors.js
  3. +1 −1 test/functional/loader.js
  4. +1 −1 test/functional/single-errors.js
View
@@ -9,7 +9,7 @@ var yamlRequireHandler = function (module, filename) {
var content = fs.readFileSync(filename, 'utf8');
// fill in documents
- module.exports = loader.load(content, { name: filename });
+ module.exports = loader.load(content, { filename: filename });
};
// register require extensions only if we're on node.js
@@ -20,7 +20,7 @@ helper.generateTests({
jsyaml.loadAll(
errorFile.content,
function () {},
- { name: errorFile.path,
+ { filename: errorFile.path,
schema: TEST_SCHEMA,
strict: true });
},
@@ -20,7 +20,7 @@ helper.generateTests({
jsyaml.loadAll(
dataFile.content,
function (doc) { object1.push(doc); },
- { name: dataFile.path,
+ { filename: dataFile.path,
schema: TEST_SCHEMA });
if (object1.length === 1) {
@@ -19,7 +19,7 @@ helper.generateTests({
function () {
jsyaml.load(
errorFile.content,
- { name: errorFile.path,
+ { filename: errorFile.path,
schema: TEST_SCHEMA,
strict: true });
},

0 comments on commit 8462011

Please sign in to comment.