Advertisement
Guest User

Untitled

a guest
May 19th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. import { wrap } from "../";
  2. import ExampleUnwrapped from "./Example.svelte";
  3. import React from "react";
  4. import { render, wait } from "react-testing-library";
  5.  
  6. const Example = wrap(ExampleUnwrapped);
  7.  
  8.  
  9. describe("svelte-jsx", () => {
  10. test("can wrap a svelte component in jsx", async () => {
  11. const { getByText } = render(<Example name="world" />);
  12.  
  13.  
  14. expect(getByText("Hello world!"));
  15. });
  16. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement