Skip to content

Commit

Permalink
test: add trivial test for CognitePointCloudModel
Browse files Browse the repository at this point in the history
  • Loading branch information
haakonflatval-cognite committed May 25, 2022
1 parent 397ab09 commit db398ca
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions viewer/packages/pointclouds/src/CognitePointCloudModel.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*!
* Copyright 2022 Cognite AS
*/

import { createPointCloudModel } from '../../../test-utilities/src/createPointCloudModel';
import { CognitePointCloudModel } from './CognitePointCloudModel';

describe(CognitePointCloudModel.name, () => {
let model: CognitePointCloudModel;

beforeEach(() => {
model = createPointCloudModel(1, 2);
});

test('Default CognitePointCloudModel does not contain annotations', () => {
expect(model.stylableObjects).toHaveLength(0);
});
});

0 comments on commit db398ca

Please sign in to comment.