Skip to content

Commit

Permalink
test(People): fix getMe test
Browse files Browse the repository at this point in the history
  • Loading branch information
adamweeks authored and lalli-flores committed Dec 7, 2019
1 parent af7ed28 commit 29d59db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/PeopleAdapter.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ describe('People Adapter Interface', () => {

describe('getMe()', () => {
test('returns an observable', () => {
expect(isObservable(peopleAdapter.getPerson())).toBeTruthy();
expect(isObservable(peopleAdapter.getMe())).toBeTruthy();
});

test('errors because it needs to be defined', (done) => {
peopleAdapter.getPerson('id').subscribe(
peopleAdapter.getMe().subscribe(
() => {},
(error) => {
expect(error.message).toBe('getPerson(ID) must be defined in PeopleAdapter');
expect(error.message).toBe('getMe() must be defined in PeopleAdapter');
done();
}
);
Expand Down

0 comments on commit 29d59db

Please sign in to comment.