astro-ghostcms/.pnpm-store/v3/files/f4/5ab4ef4263eb1d5d256f9414474...

18 lines
410 B
Plaintext

/* eslint-env mocha */
const assert = require('assert')
const loadYamlFile = require('./')
describe('load-yaml-file', () => {
it('loadYamlFile()', () => {
return loadYamlFile('foo.yml').then(data => {
assert.deepStrictEqual(data, { foo: true })
})
})
it('loadYamlFile.sync()', () => {
const data = loadYamlFile.sync('foo.yml')
assert.deepStrictEqual(data, { foo: true })
})
})