aboutsummaryrefslogtreecommitdiffstats
path: root/tests/indent/gdscript_spec.lua
blob: ee6f58a4b1be2cb1809554051a5acd8b32be2291 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
local Runner = require('tests.indent.common').Runner

local run = Runner:new(it, 'tests/indent/gdscript', {
  tabstop = 4,
  shiftwidth = 4,
  softtabstop = 0,
  expandtab = false,
})

describe('indent GDScript:', function()
  describe('whole file:', function()
    run:whole_file('.', {
      expected_failures = {},
    })
  end)

  describe('new line:', function()
    run:new_line('basic_blocks.gd', { on_line = 1, text = 'var member := 0', indent = 0 })
  end)
end)