diff --git a/__tests__/lib/getToken.test.tsx b/__tests__/lib/getToken.test.tsx deleted file mode 100644 index aaeef1c..0000000 --- a/__tests__/lib/getToken.test.tsx +++ /dev/null @@ -1,21 +0,0 @@ -import { getToken } from '../../src/.'; -import { generateAccessToken } from '../test-utils'; -jest.setTimeout(60000); - -describe('getToken', () => { - const clientSecret = '57hMbxBuIsWAMiT4k0XZ0JmQV5M0BrpR6E4nN9vbEoWvNy5S'; // never do this in your client side js but this is safe due to it being a testing application alone - const appId = 'ygzRl6CiiUivwsNn3UjntatUDP4k' - const clientId = 'm4MohkXSo2xMVWYXj6NecyS5uEeJ' - const hostName = 'http://localhost:3000' - let accessTokenSigned: string = generateAccessToken( - hostName, - clientId, - appId, - clientSecret, - ); - - it('returns a string', async () => { - let resultToken: string = await getToken(accessTokenSigned); - expect(typeof resultToken).toBe('string'); - }); -}); diff --git a/example/nextjs/pages/_app.jsx b/example/nextjs/pages/_app.jsx new file mode 100644 index 0000000..84117e2 --- /dev/null +++ b/example/nextjs/pages/_app.jsx @@ -0,0 +1,13 @@ +import Script from 'next/script'; +import '../../../dist/promo-button.esm.css'; // @tincre/promo-button/bundle.css + +function MyApp({ Component, pageProps }) { + return ( + <> +