OSDN Git Service
(root)
/
twpd
/
master.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d9cceb
)
Regular updates
author
Erik
<erikgronwal@users.osdn.me>
Wed, 17 Jun 2020 14:55:05 +0000
(23:55 +0900)
committer
Erik
<erikgronwal@users.osdn.me>
Wed, 17 Jun 2020 14:55:05 +0000
(23:55 +0900)
bash.md
patch
|
blob
|
history
jest.md
patch
|
blob
|
history
diff --git
a/bash.md
b/bash.md
index
c62e460
..
3a3b615
100644
(file)
--- a/
bash.md
+++ b/
bash.md
@@
-455,6
+455,7
@@
Fruits[2]="Orange"
```bash
echo ${Fruits[0]} # Element #0
+echo ${Fruits[-1]} # Last element
echo ${Fruits[@]} # All elements, space-separated
echo ${#Fruits[@]} # Number of elements
echo ${#Fruits} # String length of the 1st element
diff --git
a/jest.md
b/jest.md
index
f1527c4
..
629fb60
100644
(file)
--- a/
jest.md
+++ b/
jest.md
@@
-124,8
+124,12
@@
See: [expect()](http://facebook.github.io/jest/docs/en/expect.html#expectvalue)
```js
expect(value)
.toMatchSnapshot()
+ .toMatchInlineSnapshot()
```
+Note that `toMatchInlineSnapshot()` requires Prettier to be set up for the project.
+See: [Inline snapshots](https://jestjs.io/docs/en/snapshot-testing#inline-snapshots)
+
### Errors
```js