Test:
it('should render the component and contain the shot.name', () => {
// Arrange
const shot: ShotTitleProps = {
name: faker.name.title(),| #!/bin/zsh | |
| function jsonValue() { | |
| KEY=$1 | |
| num=$2 | |
| awk -F"[,:}]" '{for(i=1;i<=NF;i++){if($i~/'$KEY'\042/){print $(i+1)}}}' | tr -d '"' | sed -n ${num}p | |
| } | |
| echo "Creating directory " $1 | |
| mkdir $1 | |
| cd $1 |
| // Promise.all is good for executing many promises at once | |
| Promise.all([ | |
| promise1, | |
| promise2 | |
| ]); | |
| // Promise.resolve is good for wrapping synchronous code | |
| Promise.resolve().then(function () { | |
| if (somethingIsNotRight()) { | |
| throw new Error("I will be rejected asynchronously!"); |