This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// eslint-disable no-console | |
// https://github.com/facebook/react/pull/22114#issuecomment-900721521 | |
// This error is a bug fixed in React 18: https://github.com/facebook/react/pull/22114. | |
// Suppress it for all tests. | |
const KNOWN_VIOLATIONS = [ | |
"Warning: Can't perform a React state update on an unmounted", | |
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": 1, | |
"user_id": 1, | |
"estimate_id": 3, | |
"query": "test", | |
"status": "success", | |
"message": "", | |
"job_status": "success", | |
"operations": [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Based on https://www.driftingruby.com/episodes/page-specific-javascript-in-ruby-on-rails#comments | |
// Usage: | |
// if(!page.isControllerAndAction('users', 'index')) return; | |
var Page, bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }; | |
Page = (function() { | |
function Page() { | |
this.action = bind(this.action, this); | |
this.controller = bind(this.controller, this); |