1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import { OrderBuilder } from "./order-builder";
7 describe("OrderBuilder", () => {
8 it("should build correct order query", () => {
9 const order = OrderBuilder
12 .addDesc("modifiedAt")
14 expect(order).toEqual(["kind asc", "modified_at desc"]);
17 it("should combine results with other builder", () => {
18 const order = OrderBuilder
23 .addDesc("modifiedAt"))
25 expect(order).toEqual(["kind asc", "properties.modified_at desc"]);