Skip to content

Commit ea0ed71

Browse files
committed
fix(attributes): updated the plugin attributes to pull directly from the package.json
closes #26
1 parent dda8412 commit ea0ed71

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/route.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ export function register(server, options, next) {
1717
}
1818

1919
register.attributes = {
20-
name: 'html-route'
20+
pkg: require('../package.json')
2121
};

test/unit/route-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ suite('route', () => {
1717

1818
test('that the plugin is defined', () => {
1919
assert.deepEqual(register.attributes, {
20-
name: 'html-route'
20+
pkg: require('../../package.json')
2121
});
2222
});
2323

0 commit comments

Comments
 (0)