From 4bc3782b355679a21f783fa9a85297ca71298604 Mon Sep 17 00:00:00 2001 From: Corey McCandless Date: Thu, 6 Dec 2018 09:17:42 -0500 Subject: [PATCH] roman-numerals: use named import --- exercises/roman-numerals/example.js | 4 +--- exercises/roman-numerals/roman-numerals.spec.js | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/exercises/roman-numerals/example.js b/exercises/roman-numerals/example.js index daa227f2dd..858a226c92 100644 --- a/exercises/roman-numerals/example.js +++ b/exercises/roman-numerals/example.js @@ -1,4 +1,4 @@ -function toRoman(number) { +export function toRoman(number) { let result = ''; let remainingNumber = number; const mappings = [ @@ -26,5 +26,3 @@ function toRoman(number) { return result; } - -export default toRoman; diff --git a/exercises/roman-numerals/roman-numerals.spec.js b/exercises/roman-numerals/roman-numerals.spec.js index 1fb3d59ec4..48b6998426 100644 --- a/exercises/roman-numerals/roman-numerals.spec.js +++ b/exercises/roman-numerals/roman-numerals.spec.js @@ -1,4 +1,4 @@ -import toRoman from './roman-numerals'; +import { toRoman } from './roman-numerals'; describe('toRoman()', () => { test('converts 1', () => expect(toRoman(1)).toEqual('I'));