wrote more of the compressor and added some tests
This commit is contained in:
25
test/compress/properties.js
Normal file
25
test/compress/properties.js
Normal file
@@ -0,0 +1,25 @@
|
||||
keep_properties: {
|
||||
options = {
|
||||
properties: false
|
||||
};
|
||||
input: {
|
||||
a["foo"] = "bar";
|
||||
}
|
||||
expect: {
|
||||
a["foo"] = "bar";
|
||||
}
|
||||
}
|
||||
|
||||
dot_properties: {
|
||||
options = {
|
||||
properties: true
|
||||
};
|
||||
input: {
|
||||
a["foo"] = "bar";
|
||||
a["if"] = "if";
|
||||
}
|
||||
expect: {
|
||||
a.foo = "bar";
|
||||
a["if"] = "if";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user