UNPKG

@tamagui/react-native-web-lite

Version:
20 lines (19 loc) 724 B
import AppState from ".."; describe("apis/AppState", function () { var handler = function () {}; describe("addEventListener", function () { test('throws if the provided "eventType" is not supported', function () { expect(function () { return AppState.addEventListener("foo", handler); }).toThrow(), expect(function () { return AppState.addEventListener("change", handler).remove(); }).not.toThrow(); }), test("returns remove subscription", function () { var subscription = AppState.addEventListener("change", handler); expect(function () { return subscription.remove(); }).not.toThrow(); }); }); }); //# sourceMappingURL=index-test.native.js.map