allenai / pdf-component-library

51 stars 5 forks source link

28926 subtask: ContextProvider unit tests #19

Closed carolinepaulic closed 3 years ago

carolinepaulic commented 3 years ago

Description

This is a subtask of https://github.com/allenai/scholar/issues/28926 and a continuation of the state management work from https://github.com/allenai/scholar/issues/28332.

This PR includes unit tests for the ContextProvider to ensure that the context values and setter functions provided by DocumentContext, TransformContext, and UiContext are available for consumption as expected.

Reviewer Instructions

I made a couple updates to the ContextProvider tests based on @pauls-ai2 feedback on my initial state management PR:

Testing Plan

Run all unit tests locally