Skip to content

Instantly share code, notes, and snippets.

View YKK101's full-sized avatar
🪲
Bug creator

YKK101

🪲
Bug creator
View GitHub Profile
@YKK101
YKK101 / TESTCASE.md
Last active September 7, 2019 09:16
Test Case  Action Expected
Register success 1. insert data
- firstName = "Vicki"
- lastName = "Taylor"
- gender = "female"
- dateOfBirth = "1975-02-01"
- tel = "(329)-859-2151"
- email = "vicki.taylor49@example.com"
2. press send button
1. Redirect to success landing page
2. Found "Welcome Vicki Taylor" message
Register error
(network request failed)
1. insert data
- firstName = "Vicki"
- lastName = "Taylor"
- gender = "female"
- dateOfBirth = "1975-02-01"
- tel = "(329)-859-2151"
- email = "vicki.taylor49@example.com"
2. press send button
1. Redirect to error landing page
Validation failed
(press send button
without any form input)
1. press send button 1. Show "Required" on firstName, lastName, and dateOfBirth fields
Required first name 1. tab firstName input
2. blur input
1. Show "Required" on firstName field
Required last name 1. tab lastName input2. blur input 1. S
import { sum ,power } from './calculate'
export const sumOfPower = (a, b) => {
console.log('CALL REAL sumOfPower')
const powA = power(a)
const powB = power(b)
return sum(powA, powB)
}
export const sum = (a, b) => {
console.log('CALL REAL SUM ' + a + ' ' + b)
return a + b
}
export const power = (a) => {
console.log('CALL REAL POWER ' + a)
return a * a
}
const http = require('http');
const hostname = '127.0.0.1';
const port = 3000;
const server = http.createServer((req, res) => {
res.statusCode = 200;
res.setHeader('Content-Type', 'text/plain');
res.end('Hello World\n');
});
@YKK101
YKK101 / EXAMPLE.md
Last active October 15, 2017 07:28
hexadecimal decimal
red 33 51
green 33 51
blue 33 51