2017-03-18 21:20:07 +03:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
2017-03-22 03:38:28 +03:00
|
|
|
exports[`test.js 1`] = `
|
2017-04-12 23:41:51 +03:00
|
|
|
setTimeout(function() {
|
2017-03-18 21:20:07 +03:00
|
|
|
thing();
|
|
|
|
}, 500);
|
|
|
|
|
2017-04-12 23:41:51 +03:00
|
|
|
["a","b","c"].reduce(function(item, thing) {
|
|
|
|
return thing + " " + item;
|
|
|
|
}, "letters:")
|
2017-03-18 21:20:07 +03:00
|
|
|
|
|
|
|
func(() => {
|
|
|
|
thing();
|
|
|
|
}, identifier);
|
|
|
|
|
|
|
|
func(function() {
|
|
|
|
thing();
|
|
|
|
}, this.props.timeout * 1000);
|
|
|
|
|
|
|
|
func((that) => {
|
|
|
|
thing();
|
|
|
|
}, this.props.getTimeout());
|
|
|
|
|
|
|
|
func(() => {
|
|
|
|
thing();
|
|
|
|
}, true);
|
|
|
|
|
|
|
|
func(() => {
|
|
|
|
thing();
|
|
|
|
}, null);
|
|
|
|
|
|
|
|
func(() => {
|
|
|
|
thing();
|
|
|
|
}, undefined);
|
|
|
|
|
|
|
|
func(() => {
|
|
|
|
thing();
|
|
|
|
}, /regex.*?/);
|
|
|
|
|
|
|
|
compose((a) => {
|
|
|
|
return a.thing;
|
|
|
|
}, b => b * b);
|
|
|
|
|
|
|
|
somthing.reduce(function(item, thing) {
|
|
|
|
return thing.blah = item;
|
|
|
|
}, {})
|
|
|
|
|
|
|
|
somthing.reduce(function(item, thing) {
|
|
|
|
return thing.push(item);
|
|
|
|
}, [])
|
|
|
|
|
|
|
|
reallyLongLongLongLongLongLongLongLongLongLongLongLongLongLongMethod((f, g, h) => {
|
|
|
|
return f.pop();
|
|
|
|
}, true);
|
|
|
|
|
|
|
|
// Don't do the rest of these
|
|
|
|
|
|
|
|
func(function() {
|
|
|
|
thing();
|
|
|
|
}, true, false);
|
|
|
|
|
|
|
|
func(() => {
|
|
|
|
thing();
|
|
|
|
}, {yes: true, cats: 5});
|
|
|
|
|
|
|
|
compose((a) => {
|
|
|
|
return a.thing;
|
|
|
|
}, b => {
|
2017-04-12 23:41:51 +03:00
|
|
|
return b + "";
|
2017-03-18 21:20:07 +03:00
|
|
|
});
|
|
|
|
|
|
|
|
compose((a) => {
|
|
|
|
return a.thing;
|
|
|
|
}, b => [1, 2, 3, 4, 5]);
|
|
|
|
|
|
|
|
renderThing(a =>
|
|
|
|
<div>Content. So much to say. Oh my. Are we done yet?</div>
|
|
|
|
,args);
|
|
|
|
|
|
|
|
setTimeout(
|
|
|
|
// Something
|
|
|
|
function() {
|
|
|
|
thing();
|
|
|
|
},
|
|
|
|
500
|
|
|
|
);
|
|
|
|
|
|
|
|
setTimeout(/* blip */ function() {
|
|
|
|
thing();
|
|
|
|
}, 500);
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
setTimeout(function() {
|
|
|
|
thing();
|
|
|
|
}, 500);
|
|
|
|
|
2017-04-12 23:41:51 +03:00
|
|
|
["a", "b", "c"].reduce(function(item, thing) {
|
|
|
|
return thing + " " + item;
|
|
|
|
}, "letters:");
|
2017-03-18 21:20:07 +03:00
|
|
|
|
|
|
|
func(() => {
|
|
|
|
thing();
|
|
|
|
}, identifier);
|
|
|
|
|
|
|
|
func(function() {
|
|
|
|
thing();
|
|
|
|
}, this.props.timeout * 1000);
|
|
|
|
|
|
|
|
func(that => {
|
|
|
|
thing();
|
|
|
|
}, this.props.getTimeout());
|
|
|
|
|
|
|
|
func(() => {
|
|
|
|
thing();
|
|
|
|
}, true);
|
|
|
|
|
|
|
|
func(() => {
|
|
|
|
thing();
|
|
|
|
}, null);
|
|
|
|
|
|
|
|
func(() => {
|
|
|
|
thing();
|
|
|
|
}, undefined);
|
|
|
|
|
|
|
|
func(() => {
|
|
|
|
thing();
|
|
|
|
}, /regex.*?/);
|
|
|
|
|
|
|
|
compose(a => {
|
|
|
|
return a.thing;
|
|
|
|
}, b => b * b);
|
|
|
|
|
|
|
|
somthing.reduce(function(item, thing) {
|
|
|
|
return (thing.blah = item);
|
|
|
|
}, {});
|
|
|
|
|
|
|
|
somthing.reduce(function(item, thing) {
|
|
|
|
return thing.push(item);
|
|
|
|
}, []);
|
|
|
|
|
|
|
|
reallyLongLongLongLongLongLongLongLongLongLongLongLongLongLongMethod(
|
|
|
|
(f, g, h) => {
|
|
|
|
return f.pop();
|
|
|
|
},
|
|
|
|
true
|
|
|
|
);
|
|
|
|
|
|
|
|
// Don't do the rest of these
|
|
|
|
|
|
|
|
func(
|
|
|
|
function() {
|
|
|
|
thing();
|
|
|
|
},
|
|
|
|
true,
|
|
|
|
false
|
|
|
|
);
|
|
|
|
|
|
|
|
func(
|
|
|
|
() => {
|
|
|
|
thing();
|
|
|
|
},
|
|
|
|
{ yes: true, cats: 5 }
|
|
|
|
);
|
|
|
|
|
|
|
|
compose(
|
|
|
|
a => {
|
|
|
|
return a.thing;
|
|
|
|
},
|
|
|
|
b => {
|
2017-04-12 23:41:51 +03:00
|
|
|
return b + "";
|
2017-03-18 21:20:07 +03:00
|
|
|
}
|
|
|
|
);
|
|
|
|
|
|
|
|
compose(
|
|
|
|
a => {
|
|
|
|
return a.thing;
|
|
|
|
},
|
|
|
|
b => [1, 2, 3, 4, 5]
|
|
|
|
);
|
|
|
|
|
|
|
|
renderThing(
|
|
|
|
a => <div>Content. So much to say. Oh my. Are we done yet?</div>,
|
|
|
|
args
|
|
|
|
);
|
|
|
|
|
|
|
|
setTimeout(
|
|
|
|
// Something
|
|
|
|
function() {
|
|
|
|
thing();
|
|
|
|
},
|
|
|
|
500
|
|
|
|
);
|
|
|
|
|
|
|
|
setTimeout(
|
|
|
|
/* blip */ function() {
|
|
|
|
thing();
|
|
|
|
},
|
|
|
|
500
|
|
|
|
);
|
2017-04-12 23:41:51 +03:00
|
|
|
|
2017-03-18 21:20:07 +03:00
|
|
|
`;
|