summaryrefslogtreecommitdiff
path: root/src/client/util_test.js
blob: 2477aaa2afc89735b12a5fd425e3d1f322786887 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
define(['util'], function(util) {
    describe("set from object", function () {
        it("set from object", function() {
            expect(util.set_from_object({1:1, 2:2})).toEqual({1:1, 2:1});
            expect(util.set_from_object({})).toEqual({});
        });
        it("set from array", function() {
            expect(util.set_from_array([1, 2])).toEqual({1:1, 2:1});
            expect(util.set_from_array([])).toEqual({});
        });
    });
})