'Verify that `get_js_dependencies` returns correct list of files.'

@ddt.data((True, [u'combined.js']), (False, [u'a.js', u'b.js', u'c.js']))
@ddt.unpack
def test_get_js_dependencies(self, pipeline_enabled, expected_js_dependencies):

    pipeline_js = {u'js-group': {u'source_filenames': [u'a.js', u'b.js', u'c.js'], u'output_filename': u'combined.js'}}
    with self.settings(PIPELINE_ENABLED=pipeline_enabled, PIPELINE_JS=pipeline_js):
        js_dependencies = get_js_dependencies(u'js-group')
        self.assertEqual(js_dependencies, expected_js_dependencies)
