'use strict';

suite('rb/reviewRequestPage/models/Entry', function () {
    it('parse', function () {
        var reviewRequestEditor = new RB.ReviewRequestEditor({
            reviewRequest: new RB.ReviewRequest()
        });

        var entry = new RB.ReviewRequestPage.Entry({
            reviewRequestEditor: reviewRequestEditor,
            id: '123',
            typeID: 'some_type',
            addedTimestamp: '2017-08-18T13:40:25Z',
            updatedTimestamp: '2017-08-18T16:20:00Z',
            ignoredAttr: 'ignored'
        }, {
            parse: true
        });

        expect(entry.id).toBe('123');
        expect(entry.get('reviewRequestEditor')).toBe(reviewRequestEditor);
        expect(entry.get('addedTimestamp')).toEqual(new Date(Date.UTC(2017, 7, 18, 13, 40, 25)));
        expect(entry.get('updatedTimestamp')).toEqual(new Date(Date.UTC(2017, 7, 18, 16, 20, 0)));
        expect(entry.get('typeID')).toBe('some_type');
    });
});

//# sourceMappingURL=entryModelTests.js.map