Skip to content

Commit b2cedf8

Browse files
committed
attribute fetching test
1 parent d4ce7b5 commit b2cedf8

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

tests/neighbors.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { AtlasProjection } from '../dist/projection.js';
33
import { AtlasUser } from '../dist/user.js';
44
import * as assert from 'uvu/assert';
55

6-
test('Neighbors', async () => {
6+
test.skip('Neighbors', async () => {
77
// get user
88
const user = new AtlasUser({ useEnvToken: true });
99
const projection = new AtlasProjection(

tests/project.test.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ test('Full project flow', async () => {
2323
organization_id = user_info.default_organization;
2424
}
2525
const organization = new AtlasOrganization(organization_id, user);
26+
// ensure organization has no attributes at this time
27+
assert.is(organization.attr, undefined);
28+
// set organization attributes
29+
await organization.fetchAttributes();
30+
// ensure organization has attributes now
31+
assert.type(organization.attr, 'object');
2632
// create project in organization
2733
console.log('creating project');
2834
const project = await organization.create_project({

0 commit comments

Comments
 (0)