@@ -6,8 +6,8 @@ import (
66 "github.com/stretchr/testify/require"
77)
88
9−func TestPasteStringToPaths(t *testing.T) {
10− t.Run("Windows", func(t *testing.T) {
9+func TestParsePastedFiles(t *testing.T) {
10+ t.Run("WindowsTerminal", func(t *testing.T) {
1111 tests := []struct {
1212 name string
1313 input string
@@ -24,7 +24,7 @@ func TestPasteStringToPaths(t *testing.T) {
2424 expected: []string{`C:\path\my-screenshot-one.png`, `C:\path\my-screenshot-two.png`, `C:\path\my-screenshot-three.png`},
2525 },
2626 {
27− name: "sigle with spaces",
27+ name: "single with spaces",
2828 input: `"C:\path\my screenshot one.png"`,
2929 expected: []string{`C:\path\my screenshot one.png`},
3030 },
@@ -46,7 +46,7 @@ func TestPasteStringToPaths(t *testing.T) {
4646 {
4747 name: "text outside quotes",
4848 input: `"C:\path\file.png" some random text "C:\path\file2.png"`,
49− expected: []string{`C:\path\file.png`, `C:\path\file2.png`},
49+ expected: nil,
5050 },
5151 {
5252 name: "multiple spaces between paths",
@@ -66,7 +66,7 @@ func TestPasteStringToPaths(t *testing.T) {
6666 }
6767 for _, tt := range tests {
6868 t.Run(tt.name, func(t *testing.T) {
69− result := windowsPasteStringToPaths(tt.input)
69+ result := windowsTerminalParsePastedFiles(tt.input)
7070 require.Equal(t, tt.expected, result)
7171 })
7272 }
@@ -141,7 +141,7 @@ func TestPasteStringToPaths(t *testing.T) {
141141 }
142142 for _, tt := range tests {
143143 t.Run(tt.name, func(t *testing.T) {
144− result := unixPasteStringToPaths(tt.input)
144+ result := unixParsePastedFiles(tt.input)
145145 require.Equal(t, tt.expected, result)
146146 })
147147 }