@@ -80,7 +80,6 @@ describe('TextDocService', () => {
80
80
it ( 'should return true if the project and user are correctly configured' , ( ) => {
81
81
const env = new TestEnvironment ( ) ;
82
82
const project = createTestProjectProfile ( {
83
- editingRequires : EditingRequires . ParatextEditingEnabled | EditingRequires . ViewModelBlankSupport ,
84
83
sync : { dataInSync : true } ,
85
84
texts : [
86
85
{ bookNum : 1 , chapters : [ { number : 1 , isValid : true , permissions : { user01 : TextInfoPermission . Write } } ] }
@@ -106,7 +105,6 @@ describe('TextDocService', () => {
106
105
it ( 'should return false if user does not have general edit right' , ( ) => {
107
106
const env = new TestEnvironment ( ) ;
108
107
const project = createTestProjectProfile ( {
109
- editingRequires : EditingRequires . ParatextEditingEnabled | EditingRequires . ViewModelBlankSupport ,
110
108
sync : { dataInSync : true } ,
111
109
texts : [
112
110
{ bookNum : 1 , chapters : [ { number : 1 , isValid : true , permissions : { user01 : TextInfoPermission . Write } } ] }
@@ -122,7 +120,6 @@ describe('TextDocService', () => {
122
120
it ( 'should return false if user does not have chapter edit permission' , ( ) => {
123
121
const env = new TestEnvironment ( ) ;
124
122
const project = createTestProjectProfile ( {
125
- editingRequires : EditingRequires . ParatextEditingEnabled | EditingRequires . ViewModelBlankSupport ,
126
123
sync : { dataInSync : true } ,
127
124
texts : [
128
125
{ bookNum : 1 , chapters : [ { number : 1 , isValid : true , permissions : { user01 : TextInfoPermission . Read } } ] }
@@ -138,7 +135,6 @@ describe('TextDocService', () => {
138
135
it ( 'should return false if data is not in sync' , ( ) => {
139
136
const env = new TestEnvironment ( ) ;
140
137
const project = createTestProjectProfile ( {
141
- editingRequires : EditingRequires . ParatextEditingEnabled | EditingRequires . ViewModelBlankSupport ,
142
138
sync : { dataInSync : false } ,
143
139
texts : [
144
140
{ bookNum : 1 , chapters : [ { number : 1 , isValid : true , permissions : { user01 : TextInfoPermission . Write } } ] }
@@ -170,7 +166,6 @@ describe('TextDocService', () => {
170
166
it ( 'should return true if all conditions are met' , ( ) => {
171
167
const env = new TestEnvironment ( ) ;
172
168
const project = createTestProjectProfile ( {
173
- editingRequires : EditingRequires . ParatextEditingEnabled | EditingRequires . ViewModelBlankSupport ,
174
169
sync : { dataInSync : true } ,
175
170
texts : [
176
171
{ bookNum : 1 , chapters : [ { number : 1 , isValid : true , permissions : { user01 : TextInfoPermission . Write } } ] }
@@ -242,9 +237,7 @@ describe('TextDocService', () => {
242
237
243
238
it ( 'should return false if the project is editable' , ( ) => {
244
239
const env = new TestEnvironment ( ) ;
245
- const project = createTestProjectProfile ( {
246
- editingRequires : EditingRequires . ParatextEditingEnabled | EditingRequires . ViewModelBlankSupport
247
- } ) ;
240
+ const project = createTestProjectProfile ( ) ;
248
241
249
242
// SUT
250
243
const actual : boolean = env . textDocService . isEditingDisabled ( project ) ;
@@ -260,7 +253,7 @@ describe('TextDocService', () => {
260
253
expect ( actual ) . toBe ( true ) ;
261
254
} ) ;
262
255
263
- it ( 'should return true if the project is has been upgraded to a version beyond the supported version' , ( ) => {
256
+ it ( 'should return true if the project has been upgraded to a version beyond the supported version' , ( ) => {
264
257
const env = new TestEnvironment ( ) ;
265
258
const project = createTestProjectProfile ( {
266
259
editingRequires : Number . MAX_SAFE_INTEGER
@@ -271,7 +264,7 @@ describe('TextDocService', () => {
271
264
expect ( actual ) . toBe ( true ) ;
272
265
} ) ;
273
266
274
- it ( 'should return true if the project is has not been upgraded to view model support' , ( ) => {
267
+ it ( 'should return true if the project has not been upgraded to view model support' , ( ) => {
275
268
const env = new TestEnvironment ( ) ;
276
269
const project = createTestProjectProfile ( {
277
270
editingRequires : EditingRequires . ParatextEditingEnabled
0 commit comments