Skip to content

Instantly share code, notes, and snippets.

View crisperpo's full-sized avatar
:electron:

Cristina Restrepo crisperpo

:electron:
View GitHub Profile
<script id="jsbin-javascript">
describe('SSO UserVoice token', () => {
it('Gets token from endpoint and set up consent in local storage', done => {
const wrapper = shallow(<ConsentUserVoice />);
jest.spyOn(window.localStorage.__proto__, 'getItem');
window.localStorage.__proto__.getItem = jest.fn();
jest.spyOn(window.localStorage.__proto__, 'setItem');
window.localStorage.__proto__.setItem = jest.fn();
setTimeout(() => {
<script id="jsbin-javascript">
describe('SSO UserVoice token', () => {
it('Gets token from endpoint and set up consent in local storage', done => {
const wrapper = shallow(<ConsentUserVoice />);
jest.spyOn(window.localStorage.__proto__, 'getItem');
window.localStorage.__proto__.getItem = jest.fn();
jest.spyOn(window.localStorage.__proto__, 'setItem');
window.localStorage.__proto__.setItem = jest.fn();
setTimeout(() => {
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>