Skip to content

Instantly share code, notes, and snippets.

@michelts
Last active October 10, 2021 13:27
Show Gist options
  • Save michelts/c507d1bf65f21f5c0843f74da2443136 to your computer and use it in GitHub Desktop.
Save michelts/c507d1bf65f21f5c0843f74da2443136 to your computer and use it in GitHub Desktop.
describe('FolderTree component', () => {
it('should allow select deeply nested folders', () => {
render(<FolderTree folders={sampleData} />);
openFolder('/home');
openFolder('/home/michel');
selectFolder('/home/michel');
expect(folderIsSelected('/home/michel')).toBeTruthy();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment