Skip to content

Commit fe81891

Browse files
test: Change assertion
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 8becf4e commit fe81891

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

src/notebooks/deepnote/deepnoteProjectUtils.unit.test.ts

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,20 @@ project:
4040

4141
const result = await readDeepnoteProjectFile(testUri);
4242

43-
assert.isDefined(result.version);
44-
assert.strictEqual(result.project.id, 'test-project-id');
45-
assert.strictEqual(result.project.name, 'Test Project');
46-
assert.strictEqual(result.project.notebooks.length, 1);
47-
assert.strictEqual(result.project.notebooks[0].id, 'test-notebook-id');
43+
assert.deepStrictEqual(result, {
44+
version: 1,
45+
project: {
46+
id: 'test-project-id',
47+
name: 'Test Project',
48+
notebooks: [
49+
{
50+
id: 'test-notebook-id',
51+
title: 'Test Notebook',
52+
blocks: []
53+
}
54+
]
55+
}
56+
});
4857
});
4958

5059
test('should throw error for invalid YAML content', async () => {

0 commit comments

Comments
 (0)