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'));