This file contains hidden or 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
| import { GarageRepo, GarageService } from '../../src'; | |
| describe('Garage Service test', () => { | |
| it('should GarageService be defined', () => { | |
| expect(GarageService).toBeDefined(); | |
| }); | |
| describe('methods', () => { |
This file contains hidden or 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
| Esquema do Cenário: Cadastro da oficina | |
| Dado que estou na tela para cadastrar uma oficina | |
| Quando informo os seguintes dados: | |
| | nome | Della Via - Ipiranga | | |
| | cep | 04278000 | | |
| | num | 664 | | |
| | credenciado | <credenciado> | | |
| E clico no botão salvar | |
| Então eu devo ver a mensagem de sucesso "Oficina cadastrada com sucesso" | |
| E o endereço deve estar cadastrado no banco de dados com todas as informações e o status deve ser "ACTIVE" |
This file contains hidden or 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
| export { default as GarageService } from './lib/garage-service'; | |
| export { default as GarageRepo } from './lib/garage-repo'; |
This file contains hidden or 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
| export default class GarageRepo { | |
| constructor(mysql, redis) { | |
| this.mysql = mysql; | |
| this.redis = redis; | |
| } | |
| } |
This file contains hidden or 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
| import { GarageRepo, GarageService } from '../../src'; | |
| describe('Garage Service test', () => { | |
| it('should GarageService be defined', () => { | |
| expect(GarageService).toBeDefined(); | |
| }); | |
| }) | |
This file contains hidden or 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
| import { LitElement, html } from 'lit-element'; | |
| class BackofficeHeader extends LitElement { | |
| static get properties() { | |
| return { | |
| title: String, | |
| subtitle: String, | |
| }; | |
| } | |
| render(){ |
This file contains hidden or 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
| import React from 'react'; | |
| export class BackofficeHeader extends React.Component { | |
| render() { | |
| const {props} = this | |
| return <div> | |
| <h1>{props.title}</h1> | |
| <p class="subtitle"> {props.subtilte || ''} </p> | |
| {props.children} |
This file contains hidden or 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
| <script> | |
| export default { | |
| name: "backoffice-header", | |
| props: { title: { type: String, required: true }, subtitle: { type: String, required: false, default: '' } } | |
| } | |
| </script> | |
| <template> | |
| <h1> {{title}}</h1> | |
| <p class="subtitle"> {{subtitle}}</p> | |
| <slot></slot> |
This file contains hidden or 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
| import React from 'react'; | |
| export function BackofficeHeader(props) { | |
| return <div> | |
| <h1>{props.title}</h1> | |
| <p class="subtitle"> {props.subtilte || ''} </p> | |
| {props.children} | |
| </div> | |
| } |
This file contains hidden or 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
| // essa funcao receber n numeros of shapes | |
| // cada shape com posicao e seu centro | |
| // e devolvera um array bidimencional | |
| const dot = [ | |
| [1] | |
| ] | |
| const square = [ | |
| [1, 1 ], | |
| [1, 1], |