•
├── index.test.js
├── test1.js
├── test2.js
└── test3.js
// index.test.js| import React, { ErrorInfo, ReactNode } from 'react'; | |
| type Props = { | |
| children?: ReactNode; | |
| }; | |
| type State = { | |
| hasError: boolean; | |
| }; |
| import User from '../models/User'; | |
| class UserController { | |
| async index(req, res) { | |
| const users = User.findAll(); | |
| return res.json(users); | |
| } | |
| async show(req, res) { |
•
├── index.test.js
├── test1.js
├── test2.js
└── test3.js
// index.test.jsenable colors for all git commands:
git config --global color.ui true
| set nocompatible | |
| syntax on |
| body { | |
| background-color: #282c34; | |
| white-space: pre; | |
| font-family: monospace; | |
| color: #abb2bf; | |
| } | |
| .property { | |
| color: #e06c75; | |
| font-weight: bold; |
if (!('Notification' in window)) {
console.log('Esse browser não suporta notificações desktop');
} else if (Notification.permission === 'granted') {
const notification = new Notification('Título', {
body: 'Conteúdo da notificação',
});
} else if (Notification.permission !== 'denied') {
// pede permição ao usuário para utilizar a Notificação Desktop
await Notification.requestPermission();| URL="https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash" | |
| PROFILE="$HOME/.bash_profile" | |
| echo "Downloading git-completion..." | |
| if ! curl "$URL" --silent --output "$HOME/.git-completion.bash"; then | |
| echo "ERROR: Couldn't download completion script. Make sure you have a working internet connection." && exit 1 | |
| fi |