Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
OriHoch committed Jun 21, 2017
1 parent 0454e72 commit 42a0f46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/modules/main/test/services/itemServiceSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ describe('item', function() {
});
it('should use the english slug as default when both exists',
function () {
var item_data = {'Slug': {'He': 'שלום', 'En': 'hello'}}
var item_data = {'slug_he': 'שלום', 'slug_en': 'hello'};
expect(item.get_key(item_data)).toEqual('hello');
});
it('should use the hebrew slug when it is the only one',
function () {
var item_data = {'Slug': {'He': 'שלום'}}
var item_data = {'slug_he': 'שלום'};
expect(item.get_key(item_data)).toEqual('שלום');
});
})
Expand Down

0 comments on commit 42a0f46

Please sign in to comment.