Real unit test (isolation, no children render)
Calls:
- constructor
- render
| docker run -v [local path]:/code -it node bash | |
| cd /code | |
| echo "console.log('Hello, World');" > app.js | |
| node app.js | |
| docker run -v [local path]:/code -it microsoft/dotnet bash | |
| cd /code | |
| dotnet new console | |
| dotnet run |
| #!/bin/bash | |
| ## v1.0.6 | |
| ## this script will gernerate css stats | |
| ### example output | |
| # CSS STATS | |
| # ---------- | |
| # Floats: 132 |
| var express = require('express'); | |
| var http = require('http'); | |
| var path = require('path'); | |
| var passport = require('passport'); | |
| var GoogleStrategy = require('passport-google-oauth').OAuth2Strategy; | |
| var GOOGLE_CLIENT_ID = "xyz1234.apps.googleusercontent.com"; | |
| var GOOGLE_CLIENT_SECRET = "--google client secret"; | |
| // Serialized and deserialized methods when got from session |
| <script> | |
| window.addEventListener('message', function(event) { | |
| console.log('iframe: Got postmessage in origin ' + location.origin + ' from origin: ' + event.origin + '(' + event.data + ')'); | |
| }); | |
| window.addEventListener('dispatchToIframe', function() { | |
| console.log('iframe: Got dispatchEvent() in origin ' + location.origin + '(from index.html)'); | |
| }); | |
| setTimeout(function() { | |
| window.dispatchEvent(new CustomEvent('dispatchFromIframe')); |
| // === Arrays | |
| var [a, b] = [1, 2]; | |
| console.log(a, b); | |
| //=> 1 2 | |
| // Use from functions, only select from pattern | |
| var foo = () => [1, 2, 3]; |