1- import { expect } from 'chai ' ;
1+ import assert from 'node:assert ' ;
22import vscode from 'vscode' ;
33
44describe ( 'RSpec Focus' , ( ) => {
@@ -18,7 +18,7 @@ describe('RSpec Focus', () => {
1818
1919 await vscode . commands . executeCommand ( 'rspec-focus.add' ) ;
2020
21- expect ( editor . document . lineAt ( 0 ) . text ) . to . equal ( "it 'does something', :focus do" ) ;
21+ assert . strictEqual ( editor . document . lineAt ( 0 ) . text , "it 'does something', :focus do" ) ;
2222 } ) ;
2323
2424 it ( "adds :focus tag to 'describe' block" , async ( ) => {
@@ -28,7 +28,7 @@ describe('RSpec Focus', () => {
2828
2929 await vscode . commands . executeCommand ( 'rspec-focus.add' ) ;
3030
31- expect ( editor . document . lineAt ( 0 ) . text ) . to . equal ( "describe 'User', :focus do" ) ;
31+ assert . strictEqual ( editor . document . lineAt ( 0 ) . text , "describe 'User', :focus do" ) ;
3232 } ) ;
3333
3434 it ( 'adds :focus tag to RSpec.describe block' , async ( ) => {
@@ -38,7 +38,7 @@ describe('RSpec Focus', () => {
3838
3939 await vscode . commands . executeCommand ( 'rspec-focus.add' ) ;
4040
41- expect ( editor . document . lineAt ( 0 ) . text ) . to . equal ( "RSpec.describe 'User', :focus do" ) ;
41+ assert . strictEqual ( editor . document . lineAt ( 0 ) . text , "RSpec.describe 'User', :focus do" ) ;
4242 } ) ;
4343
4444 it ( 'adds :focus to nearest block when cursor is inside nested block' , async ( ) => {
@@ -48,7 +48,7 @@ describe('RSpec Focus', () => {
4848
4949 await vscode . commands . executeCommand ( 'rspec-focus.add' ) ;
5050
51- expect ( editor . document . lineAt ( 1 ) . text ) . to . equal ( " it 'is valid', :focus do" ) ;
51+ assert . strictEqual ( editor . document . lineAt ( 1 ) . text , " it 'is valid', :focus do" ) ;
5252 } ) ;
5353
5454 it ( 'does not add focus when tag is already present' , async ( ) => {
@@ -58,7 +58,7 @@ describe('RSpec Focus', () => {
5858
5959 await vscode . commands . executeCommand ( 'rspec-focus.add' ) ;
6060
61- expect ( editor . document . lineAt ( 0 ) . text ) . to . equal ( "it 'is valid', :focus do" ) ;
61+ assert . strictEqual ( editor . document . lineAt ( 0 ) . text , "it 'is valid', :focus do" ) ;
6262 } ) ;
6363 } ) ;
6464
@@ -69,8 +69,8 @@ describe('RSpec Focus', () => {
6969
7070 await vscode . commands . executeCommand ( 'rspec-focus.clear' ) ;
7171
72- expect ( editor . document . lineAt ( 0 ) . text ) . to . equal ( "describe 'User' do" ) ;
73- expect ( editor . document . lineAt ( 1 ) . text ) . to . equal ( " it 'is valid' do" ) ;
72+ assert . strictEqual ( editor . document . lineAt ( 0 ) . text , "describe 'User' do" ) ;
73+ assert . strictEqual ( editor . document . lineAt ( 1 ) . text , " it 'is valid' do" ) ;
7474 } ) ;
7575 } ) ;
7676
@@ -86,10 +86,10 @@ describe('RSpec Focus', () => {
8686 editor . selection = new vscode . Selection ( new vscode . Position ( 0 , 0 ) , new vscode . Position ( 0 , 0 ) ) ;
8787
8888 await vscode . commands . executeCommand ( 'rspec-focus.add' ) ;
89- expect ( editor . document . lineAt ( 0 ) . text ) . to . equal ( "it 'work in progress', :wip do" ) ;
89+ assert . strictEqual ( editor . document . lineAt ( 0 ) . text , "it 'work in progress', :wip do" ) ;
9090
9191 await vscode . commands . executeCommand ( 'rspec-focus.clear' ) ;
92- expect ( editor . document . lineAt ( 0 ) . text ) . to . equal ( "it 'work in progress' do" ) ;
92+ assert . strictEqual ( editor . document . lineAt ( 0 ) . text , "it 'work in progress' do" ) ;
9393 } finally {
9494 await config . update ( 'focusTag' , original , vscode . ConfigurationTarget . Global ) ;
9595 }
0 commit comments