Skip to content

Commit a5b0e0c

Browse files
committed
mods: tests and the README quote in ASCII only
1 parent 9d61370 commit a5b0e0c

6 files changed

Lines changed: 12 additions & 12 deletions

File tree

‎mods/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ test('outside a git repository /diff says so and opens nothing', async ($, on) =
5252
origin: { kind: 'composer' },
5353
})
5454

55-
expect(text).toContain('isn’t in a git repository')
55+
expect(text).toMatch(/isn.t in a git repository/)
5656
expect(opened).toEqual([])
5757
})
5858
```

‎mods/diff/tests/boot-probe.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ test('/diff at boot joins the boot probe, then asks again', async ($, on) => {
4646
const ran = $.command.run(DIFF)
4747
await clock.advance(0)
4848

49-
expect(probes, 'the boot’s probe, which /diff joined').toHaveLength(1)
49+
expect(probes, 'the boot probe, which /diff joined').toHaveLength(1)
5050

5151
await clock.advance(GIT_TIMEOUT_MS)
5252
await booting
5353

5454
expect(await ran).toEqual({
55-
text: expect.stringContaining('isn’t in a git repository'),
55+
text: expect.stringMatching(/isn.t in a git repository/),
5656
})
5757
expect(probes, 'then one more of its own').toHaveLength(2)
5858
})

‎mods/diff/tests/command.test.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ test('outside a git repository /diff says so and opens nothing', async ($, on) =
3737
await $.session.start(SESSION)
3838
const { text } = await $.command.run(DIFF)
3939

40-
expect(text).toContain('isn’t in a git repository')
40+
expect(text).toMatch(/isn.t in a git repository/)
4141
expect(opened).toEqual([])
4242
})
4343

44-
test('a git that never answers is not “no repository”', async ($, on) => {
44+
test('a git that never answers is not "no repository"', async ($, on) => {
4545
on('session.start', ($, e) => ({ cwd: e.cwd }))
4646
on('command.register', ($, e) => ({ value: { command: e.name } }))
4747
on('process.run', () => ({
@@ -51,7 +51,7 @@ test('a git that never answers is not “no repository”', async ($, on) => {
5151
await $.session.start(SESSION)
5252
const { text } = await $.command.run(DIFF)
5353

54-
expect(text).toContain('git didn’t answer')
54+
expect(text).toMatch(/git didn.t answer/)
5555
})
5656

5757
test('with the built-in holding /diff, the plugin stands down', async ($, on) => {

‎mods/diff/tests/pane.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ function inRepository(on: On) {
121121
return { runs, opened, closed }
122122
}
123123

124-
test('/diff opens the pane over the session’s changes', async ($, on) => {
124+
test('/diff opens the pane over the changes in the session', async ($, on) => {
125125
const world = inRepository(on)
126126

127127
await $.session.start(SESSION)
@@ -158,7 +158,7 @@ test('every git child is pinned to the repository and reads the C locale', async
158158
}
159159
})
160160

161-
test('Claude’s first edit opens the pane on a wide terminal', async ($, on) => {
161+
test('the first edit Claude makes opens the pane on a wide terminal', async ($, on) => {
162162
const world = inRepository(on)
163163
on('tool.call', () => ({ result: 'edited' }))
164164

‎mods/sec-default/tests/sec-default.test.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ test(
142142
)
143143

144144
test(
145-
'with no allowlist, the person’s plugin adds its tool',
145+
'with no allowlist, a plugin the person installed adds its tool',
146146
{ plugins: [registering('mine')] },
147147
async ($, on) => {
148148
on('settings.read', () => ({ value: NO_ALLOWLIST }))
@@ -168,7 +168,7 @@ test(
168168
)
169169

170170
test(
171-
'the organization’s tools are listed as its tiers listed them',
171+
'the organization tools are listed as its tiers listed them',
172172
{ plugins: [relabeling, listing] },
173173
async ($, on) => {
174174
on('settings.read', () => ({ value: ALLOWLIST }))
@@ -184,7 +184,7 @@ test(
184184
)
185185

186186
test(
187-
'a prompt section continues past the person’s plugins, not the organization’s',
187+
'a prompt section skips the plugins the person installed, never the organization ones',
188188
{ plugins: [dropping, signing] },
189189
async ($, on) => {
190190
on('prompt.section', ($, e) => ({ text: e.text }))

‎mods/telemetry/tests/telemetry.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function batchOf(post: Args<'http.fetch'>): unknown {
7474
}
7575

7676
test(
77-
'a plugin’s $.telemetry.log posts one first-party row',
77+
'a $.telemetry.log call from a plugin posts one first-party row',
7878
{ plugins: [recording] },
7979
async ($, on) => {
8080
memoryEnv(on, { USER_TYPE: 'ant' })

0 commit comments

Comments
 (0)