Skip to content

Commit d324acd

Browse files
committed
initialises and completes 8th (findHondas) test
1 parent 6058b27 commit d324acd

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/__tests__/objects.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ describe('findByName', () => {
147147
});
148148

149149
describe('findHondas', () => {
150-
xit('returns a list of cars manufactured by Honda', () => {
150+
it('returns a list of cars manufactured by Honda', () => {
151151
const car1 = {
152152
manufacturer: 'Honda',
153153
year: 1997,

src/objects.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const findByName = (name, people) => {
3434
};
3535

3636
const findHondas = cars => {
37-
// your code here
37+
return cars.filter(cars => cars.manufacturer === 'Honda')
3838
};
3939

4040
const averageAge = people => {

0 commit comments

Comments
 (0)