@@ -9,63 +9,65 @@ final class CodeEditSymbolsTests: XCTestCase {
99
1010 // MARK: VAULT
1111
12+ private let record : Bool = false
13+
1214 func testCreateNSImageVault( ) {
13- let image = NSImage . symbol ( named : " vault " )
15+ let image = NSImage . vault
1416 let view = NSImageView ( image: image)
15- assertSnapshot ( matching: view, as: . image)
17+ assertSnapshot ( matching: view, as: . image, record : record )
1618 }
1719
1820 func testCreateNSImageVaultFill( ) {
19- let image = NSImage . symbol ( named : " vault.fill " )
21+ let image = NSImage . vault_fill
2022 let view = NSImageView ( image: image)
21- assertSnapshot ( matching: view, as: . image)
23+ assertSnapshot ( matching: view, as: . image, record : record )
2224 }
2325
2426 // MARK: COMMIT
2527
2628 func testCreateNSImageCommit( ) {
27- let image = NSImage . symbol ( named : " commit " )
29+ let image = NSImage . commit
2830 let view = NSImageView ( image: image)
29- assertSnapshot ( matching: view, as: . image)
31+ assertSnapshot ( matching: view, as: . image, record : record )
3032 }
3133
3234 // MARK: CHECKOUT
3335
3436 func testCreateNSImageCheckout( ) {
35- let image = Image ( symbol : " checkout " )
36- let view : NSView = NSHostingController ( rootView : image) . view
37- assertSnapshot ( matching: view, as: . image( size : view . intrinsicContentSize ) )
37+ let image = NSImage . checkout
38+ let view : NSView = NSImageView ( image : image)
39+ assertSnapshot ( matching: view, as: . image, record : record )
3840 }
3941
4042 // MARK: - Image Tests
4143
4244 // MARK: VAULT
4345
4446 func testCreateImageVault( ) {
45- let image = Image ( symbol : " vault " )
47+ let image = Image . vault
4648 let view : NSView = NSHostingController ( rootView: image) . view
47- assertSnapshot ( matching: view, as: . image( size: view. intrinsicContentSize) )
49+ assertSnapshot ( matching: view, as: . image( size: view. intrinsicContentSize) , record : record )
4850 }
4951
5052 func testCreateImageVaultFill( ) {
51- let image = Image ( symbol : " vault.fill " )
53+ let image = Image . vault_fill
5254 let view : NSView = NSHostingController ( rootView: image) . view
53- assertSnapshot ( matching: view, as: . image( size: view. intrinsicContentSize) )
55+ assertSnapshot ( matching: view, as: . image( size: view. intrinsicContentSize) , record : record )
5456 }
5557
5658 // MARK: COMMIT
5759
5860 func testCreateImageCommit( ) {
59- let image = Image ( symbol : " commit " )
61+ let image = Image . commit
6062 let view : NSView = NSHostingController ( rootView: image) . view
61- assertSnapshot ( matching: view, as: . image( size: view. intrinsicContentSize) )
63+ assertSnapshot ( matching: view, as: . image( size: view. intrinsicContentSize) , record : record )
6264 }
6365
6466 // MARK: CHECKOUT
6567
6668 func testCreateImageCheckout( ) {
67- let image = Image ( symbol : " checkout " )
69+ let image = Image . checkout
6870 let view : NSView = NSHostingController ( rootView: image) . view
69- assertSnapshot ( matching: view, as: . image( size: view. intrinsicContentSize) )
71+ assertSnapshot ( matching: view, as: . image( size: view. intrinsicContentSize) , record : record )
7072 }
7173}
0 commit comments