mirror of
git://jb55.com/damus
synced 2024-10-03 02:10:42 +00:00
7bed47c919
This change adds `https://github.com/pointfreeco/swift-snapshot-testing` as a package dependency and links it to the `damusTests` target. It also adds one snapshot test to demonstrate its usefulness, by adding coverage to one particular aspect that we have never been able to test before: Whether or not the post text editor will wrap the text once the text gets long. Testing of the test ------------------- PASS iOS: 17.0 Device: Simulator Damus: This commit Test steps: 1. Run `testTextWrapperViewWillWrapText`. PASS 2. Change TextViewWrapper.swift and remove this line: ``` textView.setContentCompressionResistancePriority(.defaultLow, for: .horizontal) ``` 3. Rerun. It fails. PASS (This is expected) Closes: https://github.com/damus-io/damus/issues/1562 Signed-off-by: Daniel D’Aquino <daniel@daquino.me> Signed-off-by: William Casarin <jb55@jb55.com>
58 lines
1.6 KiB
Plaintext
58 lines
1.6 KiB
Plaintext
{
|
|
"pins" : [
|
|
{
|
|
"identity" : "gsplayer",
|
|
"kind" : "remoteSourceControl",
|
|
"location" : "https://github.com/wxxsw/GSPlayer",
|
|
"state" : {
|
|
"revision" : "aa6dad7943d52f5207f7fcc2ad3e4274583443b8",
|
|
"version" : "0.2.26"
|
|
}
|
|
},
|
|
{
|
|
"identity" : "kingfisher",
|
|
"kind" : "remoteSourceControl",
|
|
"location" : "https://github.com/onevcat/Kingfisher",
|
|
"state" : {
|
|
"revision" : "415b1d97fb38bda1e5a6b2dde63354720832110b",
|
|
"version" : "7.6.1"
|
|
}
|
|
},
|
|
{
|
|
"identity" : "secp256k1.swift",
|
|
"kind" : "remoteSourceControl",
|
|
"location" : "https://github.com/jb55/secp256k1.swift",
|
|
"state" : {
|
|
"revision" : "40b4b38b3b1c83f7088c76189a742870e0ca06a9"
|
|
}
|
|
},
|
|
{
|
|
"identity" : "swift-markdown-ui",
|
|
"kind" : "remoteSourceControl",
|
|
"location" : "https://github.com/damus-io/swift-markdown-ui",
|
|
"state" : {
|
|
"revision" : "76bb7971da7fbf429de1c84f1244adf657242fee"
|
|
}
|
|
},
|
|
{
|
|
"identity" : "swift-snapshot-testing",
|
|
"kind" : "remoteSourceControl",
|
|
"location" : "https://github.com/pointfreeco/swift-snapshot-testing",
|
|
"state" : {
|
|
"revision" : "5b356adceabff6ca027f6574aac79e9fee145d26",
|
|
"version" : "1.14.1"
|
|
}
|
|
},
|
|
{
|
|
"identity" : "swift-syntax",
|
|
"kind" : "remoteSourceControl",
|
|
"location" : "https://github.com/apple/swift-syntax.git",
|
|
"state" : {
|
|
"revision" : "74203046135342e4a4a627476dd6caf8b28fe11b",
|
|
"version" : "509.0.0"
|
|
}
|
|
}
|
|
],
|
|
"version" : 2
|
|
}
|