From 99e11a182759519f3961be7596744957c504b0f3 Mon Sep 17 00:00:00 2001 From: Bill Date: Tue, 9 Jun 2020 19:28:21 -0400 Subject: [PATCH] use arrow functions within test suite to be consistent --- __tests__/index.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/__tests__/index.test.js b/__tests__/index.test.js index dabaa4e..7c7f43a 100644 --- a/__tests__/index.test.js +++ b/__tests__/index.test.js @@ -1,8 +1,8 @@ const requireFromString = require('require-from-string'); const ejsLoader = require('../index.js'); -describe('ejsLoader', function() { - it('returns template with applied parameters', function() { +describe('ejsLoader', () => { + it('returns template with applied parameters', () => { const template = '
Hello <%= world %>!
'; const params = { world: 'World' }; const compiled = requireFromString(ejsLoader(template));