|
@@ -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();
|