refs #14565-login
[arvados.git] / src / services / api / order-builder.test.ts
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 import { OrderBuilder } from "./order-builder";
6
7 describe("OrderBuilder", () => {
8     it("should build correct order query", () => {
9         const order = new OrderBuilder()
10             .addAsc("kind")
11             .addDesc("createdAt")
12             .getOrder();
13         expect(order).toEqual("kind asc,created_at desc");
14     });
15 });