Skip to content

Commit b15df82

Browse files
committed
remove typeCode argument from createEngineer
1 parent 9886939 commit b15df82

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ const leadEngineer = createEngineer(leadEngineerDoc.leadEngineer, 'E');
99
console.log(`Candidate: ${candidate.name}, ${candidate.type}`);
1010
console.log(`Lead engineer: ${leadEngineer.name}, ${leadEngineer.type}`);
1111

12-
export function createEngineer(name, typeCode) {
12+
export function createEngineer(name) {
1313
return new Employee(name, 'E');
1414
}

src/index.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { createEngineer } from './index.js';
22

33
describe('createEngineer', () => {
44
it('should create an employee, given a name and a type code', () => {
5-
const employee = createEngineer('John Doe', 'E');
5+
const employee = createEngineer('John Doe');
66
expect(employee.name).toBe('John Doe');
77
expect(employee.type).toBe('Engineer');
88
});

0 commit comments

Comments
 (0)