Skip to content

Commit

Permalink
test comments
Browse files Browse the repository at this point in the history
  • Loading branch information
turbocrime committed Aug 21, 2024
1 parent 0d53f8e commit b1ba4f9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/getters/src/utils/create-getter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ interface Person {
address?: Address;
}

// complete data
const alice: Person = {
firstName: 'Alice',
lastName: 'Liddell',
Expand All @@ -28,14 +29,17 @@ const alice: Person = {

const bob: Person = {
firstName: 'Bob',
// missing lastName
address: {
city: 'Seattle',
// missing state
},
};

const charlie: Person = {
firstName: 'Charlie',
lastName: '',
lastName: '', // falsy lastName
// missing address
};

describe('createGetter()', () => {
Expand Down

0 comments on commit b1ba4f9

Please sign in to comment.