Răsfoiți Sursa

add htacess test

Girish Ramakrishnan 8 ani în urmă
părinte
comite
445ef82b8a
1 a modificat fișierele cu 8 adăugiri și 0 ștergeri
  1. 8 0
      test/test.js

+ 8 - 0
test/test.js

@@ -64,6 +64,12 @@ describe('Application life cycle test', function () {
         });
     }
 
+    function checkHtaccess(done) {
+        var out = execSync('cloudron exec -- cat /app/data/htaccess');
+        expect(out.toString('utf8').indexOf('RewriteEngine On')).to.not.be(-1); // wp generates this with permalinks in hard mode
+        done();
+    }
+
     xit('build app', function () {
         execSync('cloudron build', { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
     });
@@ -153,6 +159,8 @@ describe('Application life cycle test', function () {
         });
     });
 
+    it('has correct htaccess', checkHtaccess);
+
     it('can restart app', function (done) {
         execSync('cloudron restart');
         done();