is-camera-on icon indicating copy to clipboard operation
is-camera-on copied to clipboard

Tests

Open sindresorhus opened this issue 7 years ago • 1 comments

Not entirely sure how to write tests for this, but I was thinking I could first assert it's false and the open Photo Booth and assert it's true, as Photo Booth activates the camera.

sindresorhus avatar Apr 27 '17 15:04 sindresorhus

How about creating a test utility class which actually access and turn on/off the system camera? I found this repo which is accessing the camera from the swift playground and show the camera view on playground live view. Not sure this helps but throwing out an idea

rizwankce avatar Sep 13 '17 10:09 rizwankce