Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions exercises/roman-numerals/example.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function toRoman(number) {
export function toRoman(number) {
let result = '';
let remainingNumber = number;
const mappings = [
Expand Down Expand Up @@ -26,5 +26,3 @@ function toRoman(number) {

return result;
}

export default toRoman;
2 changes: 1 addition & 1 deletion exercises/roman-numerals/roman-numerals.spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import toRoman from './roman-numerals';
import { toRoman } from './roman-numerals';

describe('toRoman()', () => {
test('converts 1', () => expect(toRoman(1)).toEqual('I'));
Expand Down