Skip to content

Commit a3be50a

Browse files
committed
Update test to use jsonFileContent
1 parent fb03487 commit a3be50a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

test/app.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ test('generates expected files', () => {
4343

4444
test('creates package.json correctly', () => {
4545
assert.file('package.json');
46-
[
47-
'"name": "jekyllized"',
48-
'"description": "Test site for Jekyllized"',
49-
'"homepage": "www.test.com',
50-
'"name": "Ola Nordmann"',
51-
'"email": "ola.nordmann@gmail.com"'
52-
].forEach(field => {
53-
assert.fileContent('package.json', field);
46+
assert.jsonFileContent('package.json', {
47+
name: 'jekyllized',
48+
description: 'Test site for Jekyllized',
49+
homepage: 'www.test.com',
50+
author: {
51+
name: 'Ola Nordmann',
52+
email: 'ola.nordmann@gmail.com'
53+
}
5454
});
5555
});

0 commit comments

Comments
 (0)