Skip to content

Commit

Permalink
Fixed scope test execution, which was creating another scope in the c…
Browse files Browse the repository at this point in the history
…hain and expecting them to be read as a children
  • Loading branch information
alexandercerutti committed Feb 10, 2024
1 parent 31af1ac commit 4c62953
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions packages/ttml-adapter/specs/Scope.spec.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -160,26 +160,11 @@ describe("Scope and contexts", () => {
undefined,
createTimeContext({
timeContainer: "seq",
}),
);

const scope2 = createScope(
scope1,
createTimeContext({
// just to not make it nullable
begin: 0,
}),
);

expect(readScopeTimeContext(scope2).endTime).toBe(0);

/**
* Additional test: `timeContainer` is always applied to the
* children but not on the element itself
*/

expect(readScopeTimeContext(scope1).timeContainer).toBe("par");
expect(readScopeTimeContext(scope2).timeContainer).toBe("seq");
expect(readScopeTimeContext(scope1).endTime).toBe(0);
});
});

Expand Down

0 comments on commit 4c62953

Please sign in to comment.